SopGreg
22 Oct 2010, 2:07 AM
Hi,
there's a bug in the current LiveGridView implementation:
LiveGridEvent<ModelData> event = (LiveGridEvent<ModelData>) createComponentEvent(null);
fireEvent(Events.LiveGridViewUpdate, event);
The newly created event is missing the page size property, it can be fixed like this:
LiveGridEvent<ModelData> event = (LiveGridEvent<ModelData>) createComponentEvent(null);
event.setPageSize(rowCount);
fireEvent(Events.LiveGridViewUpdate, event);
I noticed this because the LiveToolItem requires this value, and without it being set it displays something like
"Displaying 5 to 4 of 200"
regards
there's a bug in the current LiveGridView implementation:
LiveGridEvent<ModelData> event = (LiveGridEvent<ModelData>) createComponentEvent(null);
fireEvent(Events.LiveGridViewUpdate, event);
The newly created event is missing the page size property, it can be fixed like this:
LiveGridEvent<ModelData> event = (LiveGridEvent<ModelData>) createComponentEvent(null);
event.setPageSize(rowCount);
fireEvent(Events.LiveGridViewUpdate, event);
I noticed this because the LiveToolItem requires this value, and without it being set it displays something like
"Displaying 5 to 4 of 200"
regards