[Data Grid Reactive] Disable copy from data grid
Forge component by Bruno Martinho
Application Type
Reactive

Hello,


Is this possible to block copy (ctrl+c) the data from data grid?


Thank you

Hello IT Hiossen,

Have you tried to use the following code to remove such clipboard shortcuts?

GridAPI.GridManager.GetGridById('Your Grid Id').provider.autoClipboard = false;


You can also create a new client action that contains that JS and invoke it inside your OnReady client action.


Hope this answer is useful.

Best regards,

Tiago Pereira

Hi,

you can try with CSS:

.noselect {
     user-select: none; /* currently supported by Chrome, Edge, Opera and Firefox */
}

Hello IT Hiossen,

Have you tried to use the following code to remove such clipboard shortcuts?

GridAPI.GridManager.GetGridById('Your Grid Id').provider.autoClipboard = false;


You can also create a new client action that contains that JS and invoke it inside your OnReady client action.


Hope this answer is useful.

Best regards,

Tiago Pereira

Hello IT Hiossen

Use the below code in you application Grid, it will not allowed to copy (Ctrl +C) the data from  web page / Grid .

i have also uploaded (.OML) file for you reference. 



Kindly let me know on this, if it is working for you or not.


Thanks,

Ajay Sharma

DisableDataGridToBeCopied.oml

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.