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

DraggedNodes object is null

3 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
mohsen
Top achievements
Rank 1
mohsen asked on 07 Nov 2012, 03:16 PM
Hi,
I have a TreeView and RadGrid width drag and drop functionality (drag from TreeView  and drop to RadGird). To Detect which node is dropped on RadGrid, I have added a nodeDrop handler to TreeView. So When i drop a node on RadGrid, nodeDrop handler fires, but SourceDragNode and DraggedNodes of RadTreeNodeDragDropEventArgs  parameter are null. This happens just when I move TreeView and RadGrid to an UserControl.
What things may cause this issue?

I have checked my post data at client side, an it seems OK (dropped node index has correct value ).

any idea is appreciated.

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 12 Nov 2012, 09:46 AM
Hello Mohsen,

Do you use any client-side code while dropping?

I inspected the described scenario but I am afraid that this is not known issue. I would recommend you to isolate your project to one RadTreeView on your page and inspect its behavior in onNodeDrop handler. 

Could you please clarify whether this unusual behavior is reproduced by using one or more than one instance of your user control? 


Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
mohsen
Top achievements
Rank 1
answered on 12 Nov 2012, 10:58 AM
Hello Boyan,
Yes, your are right. I had a MultiView control on the page and it causes this issue. When onNodeDrop handler was calling, the RadTreeView containing View was inactive.

Tanks for your reply. 
0
Boyan Dimitrov
Telerik team
answered on 14 Nov 2012, 02:42 PM
Hello Mohsen,

Would you please elaborate a little bit the scenario because it is not quite clear form the provided so far information?

Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
mohsen
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
mohsen
Top achievements
Rank 1
Share this question
or