DataTable checkbox operations

Hi team,
Here is the code snippet https://webix.com/snippet/a80df86f
If I am selecting the checkbox and click on save button I want the selected value and call to server.

Can you please clarify, do you need to send all selected rows at once?

If so, please check: https://webix.com/snippet/de012c8e

In general, your config can be restructured a bit using the available Webix features:

  • checkbox provides a ‘silent’ data update, so cssFormat won’t be applied without an additional refresh for the checked row:
view:"datatable",
on:{
  onCheck:function(id){ this.refresh(id) } // or this.updateItem(id)
},

Or, you can implement the same behavior withadd/removeRowCss rather than populatingcssFormat for columns:

onCheck:function(id, key, state){
   if (state) this.addRowCss(id, 'row-marked');
   else this.removeRowCss(id, 'row-marked');          
}
  • some part of HTML in cells can be set with the template, so you don’t have to set the same link in all data items.
    In such case,onclick can be set for these links by theirclass.