3.2.0

CheckBox in a Grid Column

I've read many topics on checkbox in a grid. And found no clear solution to this problem. I have this situation.

- started checkbox columns deselected(false) - all fine.
- made some changes and saved to database. - so far so good.
- when I refresh the grid with different array values, the grid keeps the previous checkbox values and ignores the values in current array.

What am I missing here? I've tried many suggestions from this forum, but couldn't get it to work. Is this a known bug? Is there a workaround to this issue? Or am I missing something?

Please help.
Thanks.
wkim
November 6,
Alex,

Can you please reply? Is this a known bug or there is a workaround?
I just need to know so that I could pursue different avenue.

Very desparate PAID customer.
wkim
November 6,
Difficult to say without seeing the code - it looks like you need to clear the cell values array

grid.clearCellModel();

or

grid.setCellValue(false); //??
Alex (ActiveWidgets)
November 6,
We faced the same problems here (along with "a few" more...). Actually, we started setting all the values directly in the grid, and not to a array and then loading the array into the Grid.

You will find this aproach a lot more productive and bug free...

Regards...
Rodrigo
November 7,
I solved the problem late last night by setting the checkbox state on the grid first, then loaded the values in array. I don't think clearing, obj.clearCellModel() nor obj.setCellValue(false) will help. You need to explicitly set it, just having the checkbox value in array will not work(even after refresh).

Thanks Alex and Rodrigo.

wkim
November 7,

This topic is archived.

See also:


Back to support forum