Drag-n-Drop event handler in FlexGrid

Posted by: james.ingham on 17 May 2019, 12:22 am EST

    • Post Options:
    • Link

    Posted 17 May 2019, 12:22 am EST - Updated 3 October 2022, 8:03 pm EST

    Dear support,

    I noticed FlexGrid allows dragging column headers to group panel which is very handy. I am just curious whether it is possible to drag a column header to any DOM element on the page. Are there any particular event listeners we can utilise?

    e.g We’d like users to drag a column header and drop it to one of our search key input fields to automatically fill that input. Is it hard to implement?

  • Posted 20 May 2019, 3:10 am EST

    Hi,

    We could achieve the required functionality by handling the native drag-drop events. Please refer to the following sample which demonstrates the same:

    https://jsfiddle.net/ewmgbpuz/14/

    ~sharad

  • Posted 20 May 2019, 8:26 pm EST

    Very nice. Thanks a lot!

Need extra support?

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

Learn More

Forum Channels