Hello,
how i can get and set a checkbox value in a datatable?
we can use this exemple:
docs.webix.com/samples/15_datatable/04_editing/07_checkbox.html
thanks, regards
-Daniele-
Hello,
how i can get and set a checkbox value in a datatable?
we can use this exemple:
docs.webix.com/samples/15_datatable/04_editing/07_checkbox.html
thanks, regards
-Daniele-
Me too having this same problem
Hello,
You need to set checkbox property value to checkValue if you want to check a certain item.
Try to use the following to check the first column (“ch1”) of row with id = “1” in the docs.webix.com/samples/15_datatable/04_editing/07_checkbox.html demo:
// sets ch1 property to "on"
grida.getItem(1).ch1 = "on"; // "off" to uncheck
// redraw a first row
grida.refresh(1);
Value of “ch1” property can be got the same way as values of any other property of DataTable:
var data = grida.getItem(itemId);
var checkState = data["ch1"];