Last post May 22, 2018 07:53 AM by bczm8703
May 21, 2018 06:48 AM|bczm8703|LINK
I have a GridView to display some data to user. Recently users inform me that they are not able to select any text from the GridView and copy them.
i.e they want to use the cursor to highlight the text and then copy them to their clipboard and after that they should be able to paste it somewhere else, for example notepad or ms word
i would like to check how do i allow them to do it?
May 21, 2018 11:27 AM|kaushalparik27|LINK
I doubt that question describes the issue very well, if that really is happening on users' side, because GridView is made up with standard table/tr/td elements from which user can easily double click on contents of td and paste it anywhere.
May 22, 2018 07:38 AM|Brando ZWZ|LINK
As KaushaL says, the general gridview will generate the html table in the page.
We could directly copy the table's value to the clipboard.
Like below example:
Have you add some other setting to prevent user copy the page elements?
<body oncontextmenu="return false" onselectstart="return false"
onkeydown="if ((arguments || window.event).ctrlKey) return false">
May 22, 2018 07:53 AM|bczm8703|LINK
Hi apology for the late reply.
Firstly thanks kaushalparik and Brando for replying to my post. was trying to debug the code the whole day. i found out the issue was due to some option setting in the nicescroll.js.
i am able to select text from my tables now.