PDA

View Full Version : Why grid is not updating after buffered store is reloaded?



LesJ
14 Feb 2014, 8:15 AM
Steps to reproduce:

1. Load this page (http://docs-origin.sencha.com/extjs/4.2.2/extjs-build/examples/grid/infinite-scroll.html)
2. Use the inspector to modify the UI. I appended 'XXX' to the 1st topic.
3. Reload the store from the console.

Ext.getStore('store').reload();

Why the UI is not updating?

The 'xxx' should disappear after the reload since the client received new new data.

I'd like the UI to refresh after the reload. How can I do this?


47936 the grid

LesJ
14 Feb 2014, 8:35 AM
Looks like a previously reported bug?

http://www.sencha.com/forum/showthread.php?272957

LesJ
15 Feb 2014, 6:28 AM
Ext.getStore('store').loadPage(1); refreshes the UI, however it also scrolls the grid to the beginning.

Is there a way to refresh the grid w/o scrolling? Do you have any pointers or workarounds?

The code is not trivial to figure it out on your own.