mohit
March 28, 2017, 4:44am
1
I have a table with each row having checkbox and calendar.If I checked two or more row and edit the date of any one checked row.Then it should update the date of all checked row.
Here is my snippet.
http://webix.com/snippet/90fd5e05
Please help me
You need to iterate through the data items and check whether thestatus
is checked. If so, update the item with the needed value.
To prevent the excess refresh, please use(un)blockEvent()
methods:
http://webix.com/snippet/3c4b9b4c
onAfterEditStop:function(values, editor){
if (editor.column == "auditDeadlineDate") {
var calData = values.value;
this.blockEvent()
this.data.each(function(obj){
if (obj.status){
this.updateItem(obj.id, {auditDeadlineDate:values.value})
}
});
this.unblockEvent();
}
},