문제

I'm working on ExtJS grid(extjs4.2). I have used Paging Toolbar for the grid.

I have also written a search code using grid filter and i'm performing store reload to display the searched results, the grid is getting updated. But the paging toolbar is not getting updated(the totalCount is not getting updated).

this is my search code

{
xtype : 'button',
margin : '1 10 1 33',
text : 'Search',
handler : function() {
    var search_text = Ext.getCmp('searchText').getValue();
    agent_store.clearFilter(true);
    agent_store.filter('descriptiveName', search_text);
    Ext.getCmp('grid_agents').getStore().reload();
    agent_store.load({start:0,limit:15});  
    agent_store.loadPage(1);
    searchWindow.close();
}
}

Can anyone help me???

Thanks in Advance

도움이 되었습니까?

해결책

I believe you forgot the params keyword

store.load({
  params: {
    start: 0,
    limit: 15
 }...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top