Drop on a Column

2 posts, 0 answers
  1. Joe
    Joe avatar
    1 posts
    Member since:
    Dec 2016

    Posted 01 Apr Link to this post

    Here's my situation:
    When a user drags a node from a TreeView and drops it in a grid, I add a column.  That works...  When a user drops a node onto an existing column in the grid, I want to ask the user if they'd like to append that same column or insert a new column to the right of that one...  How can I do this?  

    I'm struggling to identify the index of the column the user dropped on, etc...  Make the grid a kendoDropTargetArea?  Make each column its own DropTarget?
  2. Vasil
    Admin
    Vasil avatar
    1604 posts

    Posted 04 Apr Link to this post

    Hi Joe,

    During the dragend event, you can use the e.toElement to get the actual element that is drop target. Then you need some logic to check if that element is part of the grid, or given column. It would depend further on what is your exact configuration.

    Regards,
    Vasil
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top