Disabling a Checkbox in a DataTable

Hi,

One of the columns in the datatable is common checkbox. The check box needs to be set as readonly. How do I accomplish this?

Thanks in advance

Ashok

Can you clarify? Do you want to disable the entire column, the row or just a cell that contains the checkbox?

Hi, there can be several ways:

If you need the column with checkboxes to be permanently readonly:

For dynamic modifications:

  • (not so nice) - use onCheck event handler (as there’s no onBefore- event) and revert checkbox value after each attempt to change it: http://webix.com/snippet/feae1a7e

Thank you. Appreciate your fast response.

Ashok

Worked like a charm