|
Rank: Member Groups: Member
Joined: 6/4/2012 Posts: 13
|
How I can uncheck a column of type CheckBoxColumn from JavaScript? I tried this code but does not change the value.
function OnCellView(grid) { var cell = grid.getSelectedCell(); var fila = cell.getItemIndex(); var colu = cell.getColIndex(); var valor = cell.getValue();
if (valor == "1") { var item = grid.getItem(fila); var cell5 = item.getCell(2);
if (colu != 2) { cell5.setValue = "0"; } } }
Thanks Regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
I believe you can do setValue("1") and setValue("0") to check/uncheck the cell.
Thanks
|
|
Rank: Member Groups: Member
Joined: 6/4/2012 Posts: 13
|
It did not work. The check is maintained in the cell, with "0" or "". Can you make a little test there? Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We tested this feature and it seems to work fine here. If the problem continues, please try to create a small test page that demonstrates the problem. We will then try to run it here to see if we can see the same problem.
Thanks!
|
|