How can i make two checkboxes in different columns of same row dependent to each other.I mean i need to check the other chekbox automaticaly while the other in same row is hecked
You can make use of datatable onCheck event.
on:{
"onCheck":function(id, col, value){
if(col === "ch1"){
var item = this.getItem(id); //row data
item.ch2 = value;
this.updateItem(id, item);
}
}
}
where “ch1” checkbox is a so-called “master”.
how to use the define(function) for webix implementation
Sorry, but it is not clear which use-case do you man.
define([])function(){}
Am not able to get the value in combo by typing first letter,i am loading data from a json file,
One more question can you tell me how to set label for a checkbox in a column of a table.i tried to set as header:"#",Since i have a “mastercheckbox” its not indicating the header.
You can extend masterCheckbox and add the necessary text
this is not working when i am using two master checkboxes,can you tel me how can i add value to the checkboxes in a table,i tried to do it by setting id for checkbox column and defining that id in JSON file,but its not working.
Please check the updated sample
http://webix.com/snippet/56905342
As for checkboxes in the data part you need to create a separate column for checkbox and its label
Thank you for the sample,it was new knowledge,but my problem is still not sloved.i need checkbox in first column not only as label as value also,which means i need to insert values to the column with label B,and that column contain checkbox in each row along with value
By default checkbox and labels are two columns
http://webix.com/snippet/9249aedd
You can create your own editor if you need a different behavior.