PDA

View Full Version : Extjs DWR Pagination



chichasonu
5 Dec 2015, 1:04 AM
I am using Extjs MVC,DWR to Load the Data in Grid.I need Pagination and remote search Feature with the same.
I have defined the Store and proxy as below


Ext.define('MyApp.store.users',{
extend : 'Ext.data.Store',
autoLoad : true,
storeId : 'users',
pageSize : 25,
model : 'MyApp.model.users',
proxy: {
type: 'dwr',
dwrFunction:MyClass.MyMethod,
dwrParams: [param1,param2],
reader: {
root: 'root',
totalProperty:'totalProperty'
}
},
scope:this
});
For the First time i get Page 1 of 20.When i click on next in paging bar i get Page 2 of 1.
Can anyone please help with the same.
Thanks in advance

joel.watson
5 Dec 2015, 8:42 AM
Hi--

What does you response from the server look like for the second request? Does it include the total count of the records?

Thanks
Joel

chichasonu
6 Dec 2015, 8:18 AM
HiThanks for the ReplyIn Second Response their is property Total Count ,but it is getting as zero.How should i send the grid total count as part of second Request.In the above Call Param1 is the Grid Count which goes as zero for the First Tym.

chichasonu
6 Dec 2015, 8:27 AM
I am calling Load in the Following Way in my gridme.store.loadPage(1);Please guide me where i am doing wrong

chichasonu
7 Dec 2015, 9:15 PM
Fixed The Issue