PDA

View Full Version : Questions about paging grids



LauraT
26 Aug 2009, 3:35 AM
Hi,
I have a locally paging grid that uses PagingModelMemoryProxy and PagingLoader. I need to periodically update the grid with totally new data set. What is the best way to update this kind of a grid?

Another question about paging grid (server side paging): Is it somehow possible to use dynamic data in grid or must the structure of the table be know beforehand? With dynamic data I mean that number of columns and data type of columns are unknown before the actual data request returns the data.

Thanks,
Laura

Arno.Nyhm
26 Aug 2009, 6:08 AM
with my own Proxy which works where i used the pagingmemoryproxy as template i do it like this way:


private void doSearch(PagingToolBar pagingToolBar) {
myOwnProxy.reset();
pagingToolBar.first();
}


if you use the pagingToolBar.refresh() then i stays on the selected page.

but you can use also the loader.load function for refreshing your data after changing it in the memory proxy.