I checked four row of table,If I edit date of one row then It should be updated to all selected row.

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

Comments

  • 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();               
           }
        },
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion