ext 呼叫當前頁重新整理方法

2021-07-02 17:14:26 字數 529 閱讀 6754

gridpanel中分頁數很多,在當前頁中重新整理又會回到第一頁,每次這樣總是很麻煩。。。怎麼才能只重新整理當前頁呢?苦苦在原始碼中找尋,經測試,終於找到了一種方法。。。

如bbar是ext.paging*******物件,在要重新整理資料來源的事件中不要用store.load(),用bbar.doload(bbar.cursor);即可!

獲取當前第幾頁:grid.getbottom*******().getpagedata().activepage  

獲取頁大小:grid.getbottom*******().pagesize

在修改或刪除grid中的資料時,刪除成功後需要重新load資料,並繼續停留在當前頁,可以使用paging*******的cursor屬性獲取當前的頁碼開始的記錄數。不知道為什麼,這個屬性值api中沒有查到,後來翻看paging*******.js的**才看到的。

pagebar=new ext.paging*******(條到條記錄,一共條',

emptymsg:"沒有記錄"

});userstore.load(});

ext GridPanel重新整理當前頁

gridpanel中分頁數很多,在當前頁中重新整理又會回到第一頁,每次這樣總是很麻煩。怎麼才能只重新整理當前頁呢?苦苦在原始碼中找尋,經測試,終於找到了一種方法。如bbar是ext.paging 物件,在要重新整理資料來源的事件中不要用store.load 用bbar.doload bbar.cur...

ASP禁止重新整理當前頁

方法1 dimsplitreflashpage dimdoreflashpage dimshuaxin time doreflashpage true shuaxin time 10 reflashtime now if notisnull session reflashtime andcint s...

ASP禁止重新整理當前頁

方法1 dim splitreflashpage dim doreflashpage dim shuaxin time doreflashpage true shuaxin time 10 reflashtime now if not isnull session reflashtime and c...