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

[Solved] Why Child node not found at drop time

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bob thomash
Top achievements
Rank 1
bob thomash asked on 13 Nov 2009, 02:57 PM

Now i m having problem with RadTreeView as i have binded dynamically with class TreeViewFolder but at debug time i m getting parent node only even though i drag and drop from RadGridView to child node . Also i m trying to load image along with dragcue but i m not getting the same. image is only building with color of arrow. I want to have different image valid image when user drag items to valid treeview node or else invalid image for invalid treeview node. Also please let me know how to retrieve the selected item name from the path.


TreeView Looks Like

Personal Folder {Parent Item}

     Inbox    {Child item}

     Outbox {Child item}

     Sent Items {Child item}

     Deleted Items {Child item}

 

Please download Sample Application from below link:

Below is my link of my sample application:

 

1.SliverLight RadTreeView Drag And Drop

2 SliverLight RadTreeView Drag And Drop

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav
Telerik team
answered on 18 Nov 2009, 07:07 PM
Hello bob,

I replied to this question in a different thread, I am pasting my reply here as well: 

----
I have attached your modified project to this reply. There are comments in it with how it has been changed.

Here is what I did, based on your post:
Now i m having problem with RadTreeView as i have binded dynamically with class TreeViewFolder...
 - the tree view has been bound, using a hierarchical data template

...but at debug time i m getting parent node only even though i drag and drop from RadGridView to child node .
- now you can drop objects in all folders
  
Also i m trying to load image along with dragcue but i m not getting the same. image is only building with color of arrow.
- an image has been added to the drag cue when dragging an employee, I have used the TreeViewDragCue

I want to have different image valid image when user drag items to valid treeview node or else invalid image for invalid treeview node.
an CanCotnainEmployees property has been added to your class and the drag cue is changed accordingly

 Also please let me know how to retrieve the selected item name from the path
I am not sure which path you refer to here. In your project the Id property has been used as a path and an item is selected by this path.

If i enable isDragandDrop property then i able to get RadTreeView item onDragInfo which drop my object as child node of that item which is not desired in my application.
- When the IsDragDropEnabled property is used for the TreeView it will enable all DragDrop by default. The dropped items are automatically added as children of the collection that the item will use as ItemsSource.

Sincerely yours,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
bob thomash
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or