PDA

View Full Version : Using the PagingToolbar without requests to server?



anfla
12 Jul 2012, 6:18 AM
Another little problem.. I load my data in my grid from an array (Or, exactlier, an array store) I have lots of data to deal with, so I wanted to use the Ext pagination. The data ist processed correctly, but the pagination wants to fetch data from server on each action. (Refreshing or changing pages)

scottmartin
12 Jul 2012, 2:32 PM
Have a look at Ext.ux.data.PagingMemoryProxy

Scott.

anfla
12 Jul 2012, 10:17 PM
I'll try. This is no regular component to Ext JS 3.4? I found an entry in the 4.1 documentation.

scottmartin
13 Jul 2012, 6:40 AM
Have a look in the examples/UX directory.

Scott.

anfla
15 Jul 2012, 10:07 PM
Thanks! I was able to implement it in my application. :)

anfla
17 Jul 2012, 1:32 AM
Okay, there's still a little problem. Pagination works fine, but I'm unable to remove data from my grid. Or, to be exactlier, the removed data returns on page switching. It seems like it retrieves the complete dataset passed to the constructor of PagingMemoryProxy, which is not accessible. My first idea was: "Well, fine.. I'm going to create a new instance of my proxy and pass it to my store!", but there is no way to do that, regarding to the docs.

anfla
17 Jul 2012, 2:31 AM
Okay, a new setter for PagingMemoryProxy.js did the trick.