I have seen the examples on adding a star rating column to a DataTable using templates. But I would like to see an example using a checkbox column, and the ability to determine which rows are checked.
Thanks
I have seen the examples on adding a star rating column to a DataTable using templates. But I would like to see an example using a checkbox column, and the ability to determine which rows are checked.
Thanks
There’s a sample of a checkbox column at http://docs.webix.com/samples/15_datatable/04_editing/07_checkbox.html
And you can always get checkbox state for each of the rows. For instance, if a checkbox is set as:
columns:[
{ id:"ch1", checkValue:'on', uncheckValue:'off',
template:" {common.checkbox()}"
}
]
You can get checkbox value the same you get value of any datatable cell:
datatable.getItem(row_id).ch1; //ch1 - ID of the checkbox column
while checkValue and uncheckValue properties help customize this value.
You can find this information in the documentation on
Editor types