:: Forum >>

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
Monday, November 6, 2006
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
Monday, November 6, 2006
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)
Monday, November 6, 2006
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
Tuesday, November 7, 2006
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
Tuesday, November 7, 2006

This topic is archived.


Back to support forum

Forum search