PDA

View Full Version : Ext.ux.LiveGrid + save scroll position after reload store



yura620310
28 Oct 2010, 9:15 AM
I have a LiveGrid which is being updated periodically. But after the call to gridStore.reload() the vertical scroll position is lost. The result is that the data was refreshed, but scrollbar is being reset and moved to the topmost position.

I found the solution for the simple GridView here:
http://www.sencha.com/learn/Ext_FAQ_Grid#Maintain_GridPanel_scroll_position_across_Store_reloads

Can anybody advice something similar for the LiveGrid?

yura620310
4 Nov 2010, 12:29 AM
I don't believe that such problems no one had

morfeusz
4 Nov 2010, 9:35 AM
Try with this:

Ext.getCmp('grid').getView().updateLiveRows( Ext.getCmp('grid').getView().lastIndex, true, true );
I hope it will help

yura620310
4 Nov 2010, 9:49 AM
morfeusz, thank you so much!