Hi All,
I need to allow multiselection in my list grid, so I am using:
and the checkboxes are showing correctly on the records.
The issue is when I click on the header of the checkbox column, the records are all selected, but then never deselected. Also, the header checkbox never shows as selected; it is always deselected.
By comparing my code to SmartGWTShowCase2 (CheckboxSelect screen), I found out the difference is in getting the data.
I am getting the data though the datasource (vehicleList.setDataSource(dataSource);) whereas in ShowCase2, the data is retrieved statically through: vehicleList.setData(CountryData.getRecords());
If I set data statically, the checkbox works well.
Is there a way I can make it work using my way of retrieving the data through a datasource?
Appreciate your feedback.
Thanks,
Shad
I need to allow multiselection in my list grid, so I am using:
Code:
vehicleList.setSelectionAppearance(SelectionAppearance.CHECKBOX); vehicleList.setSelectionType(SelectionStyle.SIMPLE);
The issue is when I click on the header of the checkbox column, the records are all selected, but then never deselected. Also, the header checkbox never shows as selected; it is always deselected.
By comparing my code to SmartGWTShowCase2 (CheckboxSelect screen), I found out the difference is in getting the data.
I am getting the data though the datasource (vehicleList.setDataSource(dataSource);) whereas in ShowCase2, the data is retrieved statically through: vehicleList.setData(CountryData.getRecords());
If I set data statically, the checkbox works well.
Is there a way I can make it work using my way of retrieving the data through a datasource?
Appreciate your feedback.
Thanks,
Shad
Comment