PDA

View Full Version : Infinite loop with LiveGridView



id9848949
6 Dec 2009, 6:18 AM
Hi,

i have a strange problem with new LiveGrid functionality in 2.1.0.

First RPC query asks with "offset 0 limit 200" settings, then i see query loop with "offset -199 limit 200" settings (there is one record in database). Grid is never rendered, only visible action is RPC query loop. Grid is functional with classic PagingToolbar class.

Code looks like:



BeanModelReader reader = new BeanModelReader();

final PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(
proxy, reader);

ListStore<BeanModel> store = new ListStore<BeanModel>(loader);

grid = new Grid<BeanModel>(store, cm);

LiveGridViewDebug liveView = new LiveGridViewDebug();
liveView.setRowHeight(32);

grid.setView(liveView);

panel = new ContentPanel();
panel.setHeading(heading);
panel.setLayout(new FitLayout());
panel.add(grid);
panel.setSize(800, 500);

add(panel);


Does anyone encounter this behaviour? Any hints?

Regards,
Pavel Arnost

id9848949
12 Dec 2009, 11:36 AM
Hi,

I forgot to update "resources" folder in upgrade process from 2.0.1 to 2.1. Now it works.

Pavel