SmartGWT version: SC_SNAPSHOT-2011-07-18
Hello,
I have a ListGrid with data loaded from the Datasource that uses a REST-Service from my backend application.
One of my use-cases is to implement possiblity to mark ALL records as selected using checkboxes.
I've used:
setSelectionType(SelectionStyle.SIMPLE);
setSelectionAppearance(SelectionAppearance.CHECKBOX);
and now I have a situation with disabled header checkbox and a warning:
"Can't select that many records at once. Please try working in smaller batches"
described here:
http://forums.smartclient.com/showthread.php?t=10295
I would like to implement following workaround for my use-case:
- If user clicks to the header checkbox, I display the confirmation "Do you want to load all data" and force loading of ALL data into the grid
I've found the way how to handle the click to the header checkbox, BUT:
- How to enable the row header checkbox (without hacks) if there are more data as can be displayed in the grid? Is it possible to override some methods of the ListGrid to achive that?
- It would even help, if I can replace the header checkbox with own control, does it work?
Many thanks in advance
Best regards
Vitbit
Hello,
I have a ListGrid with data loaded from the Datasource that uses a REST-Service from my backend application.
One of my use-cases is to implement possiblity to mark ALL records as selected using checkboxes.
I've used:
setSelectionType(SelectionStyle.SIMPLE);
setSelectionAppearance(SelectionAppearance.CHECKBOX);
and now I have a situation with disabled header checkbox and a warning:
"Can't select that many records at once. Please try working in smaller batches"
described here:
http://forums.smartclient.com/showthread.php?t=10295
I would like to implement following workaround for my use-case:
- If user clicks to the header checkbox, I display the confirmation "Do you want to load all data" and force loading of ALL data into the grid
I've found the way how to handle the click to the header checkbox, BUT:
- How to enable the row header checkbox (without hacks) if there are more data as can be displayed in the grid? Is it possible to override some methods of the ListGrid to achive that?
- It would even help, if I can replace the header checkbox with own control, does it work?
Many thanks in advance
Best regards
Vitbit
Comment