Styling Dash DataTable select rows checkbox (disable checkboxes on condition)


I use row_selectable=“multi” for dash_table.DataTable.
Is it possible to disable some checkboxes from Python Dash using ‘style_data_conditional’ attribute in dash_table.DataTable?
I need to protect some checkboxes from checking/unchecking conditional on a value in some column.

Usually I add {‘pointer-events’: ‘none’} if I need to protect cells from interaction, I need something similar for checkboxes.

Thanks in advance

1 Like

I’m facing the same issue and I’d like to know if there’s a way to do this!

Hello @lucasilvalves,

Have you taken a look at Dash AG Grid, you can do things like this, where you can determine dynamically if a row is selectable.

Check out here:

1 Like