How to dynamically disable checkbox in datatable?

hello.

Inquire about checkbox of datatable.

I want to disable the checkbox of the first row when the button is clicked after loading data.

How should I deal with it?

Hello,

You can use custom template for your checkbox:

template:function(obj, value, config){
         return '<input class="webix_table_checkbox" type="checkbox" checked="true" '+
           (obj.check_readonly ? 'disabled="true"' : '')+
           '>';
       }

And change check_readonly property when clicking the button:

click:function(){
        var grid = $$("$datatable1");
        grid.getItem(1).check_readonly = true
        $$("$datatable1").refresh()
      }

Please, check an example: Code Snippet