PDA

View Full Version : TreeStore does not support PagingModelMemoryProxy ?



salmondavid888
22 Dec 2010, 7:03 AM
Hi,
is it possible to implement local pagination with TreeStore. doesTreeStore constructor accepts PagingLoader ?


PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(results);
PagingLoader loader = new BasePagingLoader(proxy);
loader.setRemoteSort(true);
TreeStore<DataModel> store = new TreeStore<DataModel>(loader);

Thanks!

sven
22 Dec 2010, 7:05 AM
TreeStore does not support this, as it needs a TreeLoader.

salmondavid888
22 Dec 2010, 7:08 AM
Hi Sven,
is it possible to implement local pagination with EditorTreeGrid and TreeLoader combination?

Thanks!

sven
22 Dec 2010, 7:10 AM
Nothing like this is implemented, but defintly possible. There are multiply solutions:

Paging over all levels or paging for each level. This really depends on your needs.