Welcome Guest Search | Active Topics | Sign In | Register

Uncheck a column Options
ti-vam
Posted: Monday, June 4, 2012 5:42:28 PM
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
eo_support
Posted: Monday, June 4, 2012 10:13:59 PM
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
ti-vam
Posted: Tuesday, June 5, 2012 4:02:29 PM
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
eo_support
Posted: Tuesday, June 5, 2012 4:20:51 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.