Hi,
Using this code sample:
When I select all the records using the checkbox in the header, and then unselect all the records using the same mechanism, the number of selected records array passed in the SelectionEvent is wrong. If you look in the given test case, I have the following output:
If would have expected to have something going down to 0... ?
Thanks,
Thomas
PS: We have SmartGWT 4.0p
Using this code sample:
Code:
ListGrid grid = new ListGrid(DataSource.get("sys_configuration")); grid.setAutoFetchData(true); grid.setSelectionAppearance(SelectionAppearance.CHECKBOX); grid.setSelectionType(SelectionStyle.SIMPLE); grid.addSelectionChangedHandler(new SelectionChangedHandler() { @Override public void onSelectionChanged(SelectionEvent event) { System.out.println(event.getSelection().length); } }); VLayout test = new VLayout(); test.setWidth(600); test.setHeight(400); test.addMember(grid); test.draw();
Code:
19 18 17 16 15 14 13 12 11 10 9 9 9 9 9 9 9 9 9 9
Thanks,
Thomas
PS: We have SmartGWT 4.0p
Comment