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

drag and drop treeview items into a div container

3 Answers 68 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rohan
Top achievements
Rank 1
Rohan asked on 03 Dec 2010, 06:15 AM
Hi,

I am using a RadTreeView. I saw the example regarding the dragging and dropping of treeview items in RadGrid. I want to drag the items from RadTreeView and drop it into a div.

Please assist me on this.


Thanks
Rohan

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Dec 2010, 10:48 AM
Hello Rohan,


In the demo it shows how to drop node in TextBox control ans setting the text value from client side (in dropOnHtmlElement method in demo). I hope this would shed some light on accomplishing your requirement.
TreeView / Drag-and-drop



-Shinu.
0
Rohan
Top achievements
Rank 1
answered on 06 Dec 2010, 05:46 AM
Hi Shinu,

Thanks for your reply. Its done but another problem raised. When I drag and drop asp.net controls it works fine, but when I drop telerik controls it stops working. It gives following error: "Script controls may not be registered after PreRender."

Every item in the TreeView is basically a control like textbox, datepicker, dropdownlist etc. When I continue dropping  textboxes it works fine but as soon as I drop telerik datepicker and then any other other control it gives the above error.

I tried with OnInit, PreRender, OnLoad events but of no use. The error remains the same.


Please assist me...

0
Nikolay Tsenkov
Telerik team
answered on 08 Dec 2010, 02:48 PM
Hello Rohan,

The example that you mention does exactly the same thing - checks the html element on which the drop occurs. You can check the dropOnHtmlElement function on this demo's code pages for reference.


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TreeView
Asked by
Rohan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rohan
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or