How to use the switch button in datatable column to enable and disable ?

How to use the switch button in datatable column to enable and disable ?

Hello @Naufil,

How to use the switch button in datatable column to enable and disable ?

Could you please elaborate as to what you are trying to achieve here exactly? Is your end goal to disable the rows within the datable by clicking on the appropriate switch button?

If so, you can create a custom HTML template that mimics the switch button and introduce appropriate checks in order to disable selection/editing within the disabled rows: Code Snippet. You can also assign a custom CSS class to a disabled item, if needed: Code Snippet.

Hello @Dzmitry, I have already done this one but I want to use toggle switch. is that possible to use the Toggle Switch button in the datatable column?