Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This should definitely work:</p> <pre><code>Ext.getCmp('myGridID').getStore().load(); </code></pre> <p>Are you getting any javascript errors when you use the above syntax? If so, seeing the specific error message might give some clues. </p> <p>Also, ALWAYS ALWAYS use Chrome developer tools (or Firebug or IE Developer Toolbar if you love Firefox/IE). In this case, you want to see if an AJAX request is going out to /url/to/my/json/encoded/results. That will at least tell you if the call to refresh the store is making it to your server. </p> <p>My guess is that it's not, and you most likely have an error message being generated. Probably something along the lines of "Cannot call method 'getStore' of undefined"</p> <p>This would at least let you know that you're not successfully obtaining a reference to your grid. From there, check to make sure that you didn't duplicate "myGridID" for another element or something silly like that.</p> <p>You can output some info to the Chrome developer tools console to help debug, starting with:</p> <pre><code>console.log(Ext.getCmp('myGridID')); </code></pre> <p>See if it's undefined, or returns a references to the grid. If it's undefined then you're probably either duplicating the id, or maybe attempting to reload the grid before the component has actually been created (seeing your code in a bigger context of your application would help determine that).</p> <p>If it successfully returns a reference to the grid component, then keep going down the line:</p> <pre><code>console.log(Ext.getCmp('myGridID').getStore()); </code></pre> <p>Anyway, that's probably way too much explanation for something you've probably already solved by now. Maybe it will be helpful to someone else though.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload