PDA

View Full Version : Load changed Store for a grid inside a portal.



srik1309
23 Jul 2010, 1:19 PM
Hi,

I have a grid inside a portal that renders a pre-defined array data stor . I use an xml-http request that's independent of extjs to call a sever side method and get some data from the db which changes the data store. I then remove the existing content of the store and replace it with the new contents using loadData.

feedstore = Ext.StoreMgr.get('feedstore');
feedstore.removeAll(true);
feedstore.loadData(feedData);

Doing so, shouldn't the grid within the portal load the new data in the store? It doesn't. I rendered the grid to new <div> on the page using: grid.render("divid") --> it shows the new grid correctly.

However, how do I make my first grid that was already rendered inside a portal show the new set of values from the store?

Need help!

Condor
25 Jul 2010, 5:49 AM
Are you sure you are loading the data in the same store the grid is using?