Enable text selection: Users should be able to click and drag to highlight text within cells

Hi everyone,

I’m currently working with Dash AG Grid for displaying a data table and I’m encountering a challenge with text selection. I have enabled text selection within cells using the "enableCellTextSelection": True option in gridOptions. This allows me to click and drag to highlight text, which is exactly what I want.

However, I also need to disable the default double-click and triple-click functionalities that allow for row selection. Essentially, I want to ensure that only text selection is possible within the cells, and any row selection via double or triple clicks should be disabled.

If anyone has encountered a similar issue or has suggestions on how to configure the AG Grid to achieve this behavior, your help would be greatly appreciated!

Thank you!

Hi @bhushangirase and welcome to the Dash community :slightly_smiling_face:

Try using:


dashGridOptions={ "suppressRowClickSelection": True}


More info and exampes here:

1 Like