What do we need to do to enable the ability to Copy text from a cell in a grid?

What do we need to do to enable the ability to Copy text from a cell in a grid?

pmcgrealpmcgreal Posts: 10Questions: 2Answers: 0

Hi,
Currently, we are using the basic version of DataTables.net but it does not seem to support the ability to select and copy text from a cell. What is the appropriate way to get this ability?

Regards.
Pat

Answers

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951

    I'm able to select text from a cell and copy using this example. Please provide more info about the problem. A link to your page or test case showing the issue will be very helpful for us to debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • pmcgrealpmcgreal Posts: 10Questions: 2Answers: 0

    Hi Kevin,
    We have implemented more than the basic example. When we click anywhere on a row, it selects that row. In addition, when we click on a specific cell, it redirects to a detail section of our application.

    We are converting a new section of our application to DT and if we implement this similar to the basic example, we may be fine.

    Regards.
    Pat

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951

    When we click anywhere on a row, it selects that row

    I assume you are using the Select extension. Highlighting copying text works in this example.

    In addition, when we click on a specific cell, it redirects to a detail section of our application.

    I suspect the problem might be with this event handler. If this is the problem maybe this SO thread will help.

    Likely the problem is not due to Datatables and Stack Overflow or other resources can help find a solution. If you still need help then please provide a test case showing the issue.

    Kevin

Sign In or Register to comment.