In ExtJS 2, 3, and 4 when I wrote a grid I was declarng grid's store like this:
or
. However In ExtJS 5.1 it says that store is not found. Thus, in ExtJS 5.1 I write in this way:
, and it works. However then paging toolbar doesn't work properly; like when I add or delete or modify an entry I had to run
so that it shows the correct number of entries but this time it rises another problem; the app makes two GET requests from the server, one for refreshing the grid (
) and one to refresh the paging toolbar (
).
Shouldn't paging toolbar automatically render itself when I add or delete a entry from the store?
Code:
store: 'storeID'
or
Code:
store: theStore
. However In ExtJS 5.1 it says that store is not found. Thus, in ExtJS 5.1 I write in this way:
Code:
store: { type: 'contactsStore' }
, and it works. However then paging toolbar doesn't work properly; like when I add or delete or modify an entry I had to run
Code:
Ext.getCmp('ContactsPaging').doRefresh();
so that it shows the correct number of entries but this time it rises another problem; the app makes two GET requests from the server, one for refreshing the grid (
Code:
Ext.getCmp('theGrid').getStore().load();
) and one to refresh the paging toolbar (
Code:
Ext.getCmp('ContactsPaging').doRefresh();
).
Shouldn't paging toolbar automatically render itself when I add or delete a entry from the store?
Paging Toolbar doesn't work when grid's store is declared as type. Is this a bug?
Aucun commentaire:
Enregistrer un commentaire