This is a migrated thread and some comments may be shown as answers.

Dropping items onto a treeview

3 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gregor
Top achievements
Rank 1
Gregor asked on 30 May 2012, 09:10 AM
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

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 31 May 2012, 10:33 AM
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!
0
Gregor
Top achievements
Rank 1
answered on 31 May 2012, 11:08 AM
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
0
Alex Gyoshev
Telerik team
answered on 01 Jun 2012, 11:17 AM

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!
Tags
TreeView
Asked by
Gregor
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Gregor
Top achievements
Rank 1
Share this question
or