Copy of Cell

5 posts, 0 answers
  1. Rashmi
    Rashmi avatar
    12 posts
    Member since:
    Jun 2020

    Posted 08 Aug 2020 Link to this post

    Hi Team,

    Copy of cell is not working from context menu in Kendo React. 

    Thanks.

  2. Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 10 Aug 2020 Link to this post

    Hello, Rashmi,

    I tested this is our demo and I was able to copy the text of the Grid cell.

    Could you please share the steps to copy the cell and is possible an example reproducing the issue?

    Regards,
    Stefan
    Progress Telerik

  3. Rashmi
    Rashmi avatar
    12 posts
    Member since:
    Jun 2020

    Posted 11 Aug 2020 Link to this post

    Hi Stefan,

    Thanks.

    I had referred this example to make copy in context menu. 

    https://www.telerik.com/kendo-react-ui/components/grid/advanced-features/context-menu/

    On copy i need the cell copy but as of now i getting complete row copy. 

  4. Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 12 Aug 2020 Link to this post

    Hello, Rashmi,

    I assume that the issue occurs because the example is made to use the row data instead of a single cell data.

    A possible way will be to get the content of the target element based on where the context menu is opened and programmatically set the value to the clipboard:

    https://stackblitz.com/edit/react-xhmatr?file=app/main.jsx (test in full screen as the iframe of stackblitz is preventing the clipboard operation.)

    If the issue still occurs, please share an example of it and I will be happy to assist further.

    Regards,
    Stefan
    Progress Telerik

  5. Rashmi
    Rashmi avatar
    12 posts
    Member since:
    Jun 2020

    Posted 14 Aug 2020 Link to this post

    Hi,

    Thanks Stefan it worked.

    Thanks

Back to Top