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
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:
(nice) create a custom template using FontAwesome checkboxes: http://webix.com/snippet/39b794bf
(less nice) - define a custom method{common.rcheckbox()}
that will return disabled checkboxes: http://webix.com/snippet/8b2df408 HTML checkbox doesn’t have readonly
attribute, so I used disabled
.
For dynamic modifications:
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