Author Topic: Not able to select text from a row line  (Read 1580 times)

rushabhwadkar

  • Newbie
  • *
  • Posts: 7
    • View Profile
Not able to select text from a row line
« on: March 11, 2020, 03:32:41 pm »
Hi,

I am not able to select a text from a row.

My requirement is -
1. If user clicks on a row -> Entire row must get selected and if the user presses CTRL+C then it must copy the entire row into clipboard
2. If user now selects a particular text from inside row -> Only the selected text should get highlighted (Browser's default) and if the user presses CTRL+C then it must copy the selected(highlighted) text into clipboard.

fiddle link for issue - https://jsfiddle.net/rushabh_flextrade/mw720bdn/24/
Before you ask, why I have used commit and refreshDataAndView after creating the grid, then it was trial error which worked in our case (huge tailing logs 5M or more and then filtering over it). So I need that inside my code. Please provide a solution from the config which is provided or may be workaround.

Also,
I have found this interesting thing about selection, I was able to achieve requirement #2 (the text was being highlighted) but when I pressed CTRL, it just loses the control and the selection would vanish. So was not able to ctrl+c it. If you can provide a workaround for this too, then above 2 requirements can be neglected based on your priority.

Thanks,
Any help asap would be appreciated.
« Last Edit: March 11, 2020, 03:38:53 pm by rushabhwadkar »