PDA

View Full Version : Paging grid



cyChop
17 Aug 2010, 10:54 PM
Hi there!

I'm coming with a new question since I seem to be missing a point: I've been looking at the demos sources, but it doesn't fit my needs.

I'd like to have a paging grid. I have no problem making local paging work, and I understand the design of paging with a RpcProxy. The thing is: my data comes from server through RPC, but the number of records is quite limited, so I'd like to load all data once, and then having GXT behave like for a local paging.

Is there a way to achieve this? The only solution I've thought of so far is to load all data into my RpcProxy and having it extract the PagingLoadResult from the data it has stored. This means that the whole store is loaded on client-side anyway, and I reimplemented something that must act like a BaseModelMemoryProxy somehow. Any better way in mind?

Thanks!

sven
18 Aug 2010, 1:24 AM
You can use a PagingMemoryProxy for this. YOu would load the data manually with a RPC call and than fill the PagingMemoryProxy.