Cell copy with mouse drag or selection

Posted by: jonathancalvino0 on 22 March 2018, 5:53 am EST

    • Post Options:
    • Link

    Posted 22 March 2018, 5:53 am EST - Updated 3 October 2022, 8:09 pm EST

    Hi,

    One of our clients want to copy cell data partially with mouse drag.

    Lets say “2/13/2014” is placed in cell. Just “2014” part is wanted to be copied.

    This is only available in editing mode as i can see. But in editing mode, cell data can be changed by mistake.

    Is copying with mouse selection possible?

    Thanks

  • Posted 23 March 2018, 5:56 am EST

    If I understand correctly, then you would like to select some text from the cell on drag event, the drag event is assigned to select a range of cells and hence assigning thisevent to select text instead of cell range selection is not feasible.

  • Posted 27 March 2018, 3:48 am EST

    Hi,

    This time if i understand correctly, there is no way to select some text from the cell with mouse drag event. If this is the situation i will select your above comment as answer.

    Thanks

  • Posted 28 March 2018, 1:20 am EST

    Yes, your understanding is correct.

  • Posted 7 March 2019, 10:10 pm EST

    Hello guys.

    Sorry I didn’t see this thread sooner. Well, better late than never :wink:

    You can certainly allow users to select parts of cells using the mouse as they would select any other text on the page. To do that, however, you must disable the regular cell-based selection which would interfere with text selection.

    This fiddle explains and demonstrates. It uses a couple of lines of code and one CSS rule to achieve text-based selection on a FlexGrid:

    https://jsfiddle.net/Wijmo5/bmy924f7/

    I hope this approach works for you!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels