on click, select the text in the cell in gridlayout

Hi, can anyone tell me how to select the text that is in the cell in the readonly gridlayout when i click on the cell.
Plaese help me ASAP.


this is not really possible (without an extension at least), but you could try to do it on the server-side by adding a TextField (or TextArea) in readonly-mode into the GridLayout cell. Then with a LayoutClickListener you could call setSelectionRange for the clicked TextField.

Disclaimer: I haven’t tried this but I think it could work.


Thanks Tepi for the suggestion.
it worked :slight_smile: