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

drag feedback over treeview

4 Answers 116 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Henri
Top achievements
Rank 1
Henri asked on 13 Aug 2012, 09:59 AM

Hi Telerik Team,

I need  help with the tree view (using Q2 2012 SP1)
When i am dragging one or more rows from the radgridview to the radtreeview, how can i force the treeview to expand and highlight the treenode that i am hovering (dragging) over?. And how can I show feedback in the treeview of the target drop position, similar to the dotted line used when dragging in the treeview itself) ?
I am using the RadDragDropService. (radGridView.GridViewElement.GetService<RadDragDropService>)

 

Thank you in advance.

Best regards,
Henri

4 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 15 Aug 2012, 01:39 PM
Hello Henri,

Thank you for writing.

You do not need to do anything else to achieve that. This comes with RadTreeView out of the box. You need simply to set the AllowDragDrop property to true:
this.radTreeView1.AllowDragDrop = true;
this.radTreeView2.AllowDragDrop = true;

I hope this helps.

Kind regards,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Henri
Top achievements
Rank 1
answered on 20 Aug 2012, 06:58 AM
Svett,

As stated in the question, I am dragging from RADGRIDVIEW to the tree, not between radtreeviews.
Please advise. Thank in advance,

Best regards,
Henri


0
Accepted
Svett
Telerik team
answered on 21 Aug 2012, 11:40 AM
Hello Henri,

Presently, you cannot achieve this. The RadGridViewDragDropService has limitations that do not allow such extensibility. We will improve this in one the next releases.

Greetings,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Henri
Top achievements
Rank 1
answered on 21 Aug 2012, 01:27 PM
Hallo Svett,
Thank you for your quick answer. It is unfortunate that this can not be done.
I will wait for the next release. Hopefully this will be implemented.
Best regards,
Henri
Tags
Treeview
Asked by
Henri
Top achievements
Rank 1
Answers by
Svett
Telerik team
Henri
Top achievements
Rank 1
Share this question
or