Вопрос

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