jQWidgets Forums

jQuery UI Widgets Forums Grid Copy, paste, cut issues on editable: false grid

This topic contains 2 replies, has 2 voices, and was last updated by  silvio.colone 5 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • silvio.colone
    Participant

    Hi,
    as the title suggests I have the following issue on jqxGrid component: setting the configuration “editable: false” you can delete the contents from the cells with the combination CTRL + X and copy (CTRL + C) and paste (CTRL + V) to another cell overwriting the contents. This also causes problems in the export phase as the content is exported with the changes.
    To replicate this behavior, just create a grid setting editable: false and use the key combinations (CTRL + X, CTRL + C, CTRL + V) to modify the contents of the cells.
    I’m experiencing this issue with Firefox, Chrome, IE11 and Edge.

    For convenience I created this simple fiddle to test the problem.

    How can I solve this issue?

    Thanks,
    Silvio


    admin
    Keymaster

    Hi Silvio,

    We have a DataGrid property called “clipboard”. You can set it to false in order to turn off Ctrl+C, Ctrl+X, Ctrl+V

    Hope this helps.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com


    silvio.colone
    Participant

    Thanks for the workaround but this is not a solution in my case because I need to allow the copy from grid cells but not the edit. If I set “clipboard: false” I can’t copy cell content in any way. How can I allow cell content copy and not the edit?

    Have a good day,
    Silvio

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.