Dropping items onto a treeview

4 posts, 0 answers
  1. Gregor
    Gregor avatar
    17 posts
    Member since:
    May 2012

    Posted 30 May 2012 Link to this post

    If the treeview is collapsed is it possible to hover over and have the treeview expand to show child items so I can drop my item on, dont want to have to open up the treeview before dragging onto it from my grid.

    Thanks
    Gregor
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 31 May 2012 Link to this post

    Hello Gregor,

    In the drag event handler, get the current target (the element under the cursor), and if it is a treeview node, expand it through the treeview client-side API (the expand method).

    Regards,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Gregor
    Gregor avatar
    17 posts
    Member since:
    May 2012

    Posted 31 May 2012 Link to this post

    I have drag and drop false as I dont want to actually drop a node and see it in the treeview, just dropping a node in and showing counts.

    I have a kendoDropTarget and an event fires when on dragenter, was hoping to fire an event when im dragging an item and im currently hovering over the top level node so it fires the event and expands
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 01 Jun 2012 Link to this post

    Alas, describing your scenario may leave a lot of important implementation details out. Since this is a rather specific use case, please open a support ticket and provide a working example of what you are trying to achieve, and describing what does not work as expected. We will be eager to provide a solution.

    All the best,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top