Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Clipboard copy/paste via context menu in 11.2
posted

I am using version 11.2 of the WebDataGrid.  The copy/paste functionality works very well using Ctrl-C/Ctrl-V.  I would like to implement that functionality via a context menu.  Are there any javascript methods available that invoke Ctrl-C/Ctrl-V functionality?

I know I could write own javascript methods that go through the selected cells and add the data to the clipboard, but I would prefer to use your built-in methods if they are available.

 

Parents
  • 14049
    Verified Answer
    Offline posted
    Hello wamanring,

    Yes, the API methods can be accessed off of the clipboard behavior object:

    var clip = $find("WebDataGrid1").get_behaviors().getBehaviorByName('Clipboard');
    clip.copy();
    clip.paste();

    --
    Best regards,
    Alexander Kartavov
    Infragistics Team
    ASP.NET/jQuery Development Manager

    > I am using version 11.2 of the WebDataGrid. The copy/paste
    > functionality works very well using Ctrl-C/Ctrl-V. I would like to
    > implement that functionality via a context menu. Are there any
    > javascript methods available that invoke Ctrl-C/Ctrl-V functionality?
    >
    > I know I could write own javascript methods that go through the
    > selected cells and add the data to the clipboard, but I would prefer
    > to use your built-in methods if they are available.
    >
Reply Children