Threaded View
-
22 Nov 2010 7:46 PM #1
need a help about the gridpanel`s store refresh
need a help about the gridpanel`s store refresh
i did a gridpanel,want to keep the scrollbar`s state when the gridpanel refresh.
i can get the scrollbar`s top,left when the store beforeload use 'getScroll() ',and save it to store like 'store.scrollsObj'
then i did code in the event 'load',
when i break debug it ,i find it can do ,but when the gridpane fresh over the scrollbar also go to left:0,top:0Code:var showPanle = tab.getGridEl().down('.x-grid3').down('.x-grid3-viewport').down('.x-grid3-scroller') showPanle.scrollTo('top',store.scrollsObj.top+10); showPanle.scrollTo('left',store.scrollsObj.left+10);
why?
shoud i take another event?
Similar Threads
-
store.remove(rec) doesn't refresh, but store.removeAll() does?
By ekhanh101 in forum Ext 3.x: Help & DiscussionReplies: 9Last Post: 23 Nov 2010, 5:34 AM -
How to refresh GridPanel?
By ctp in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 25 Oct 2010, 9:23 PM -
How to refresh a gridPanel?
By mainmich in forum Ext 3.x: Help & DiscussionReplies: 7Last Post: 17 Jun 2010, 3:10 AM -
How to refresh GridPanel
By silcreval in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 29 Dec 2008, 5:11 AM -
gridpanel store.loadData doesnt refresh data
By onedaysale in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 13 Aug 2008, 11:18 AM


Reply With Quote