Hello
I've tried to find some information on how to implement a check all/
none feature for a CellTable. So far I haven'f found any. Anyway,
here's what my code looks like ATM
myCheckBox.addValueChangeHandler(new ValueChangeHandler<Boolean>(){
@Override
public void onValueChange(ValueChangeEvent<Boolean> event) {
boolean selected = event.getValue();
List<MyClass> elements = myDataProvider.getList();
for(MyClass c : elements){
selectionModel.setSelected(c, selected);
}
myTable.redraw();
}
});
Is there any better way of solving this? It works find with a small
rowset, but when it start to grow it gets slow.
/Thomas
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.