Examples › Disabling text selection
Set the textSelectionDisabled property to prevent users from selecting text inside the DataTable.
This improves usability whenever clicking on the table is meant to trigger an action rather than to select text, for instance if you:
- work with records selection;
- handle row clicks or cell clicks, especially double-clicks, which would otherwise select the clicked word;
- use expandable rows;
- use context menus on touch devices;
- use sorting.
Toggle the switch below and try selecting some text in the table to see the difference:
No records
Head over to the next example to discover more features.














