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

Even when dropping event is canceled, the destination node is still expanded

1 Answer 10 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Frederic Dobon
Top achievements
Rank 1
Frederic Dobon asked on 05 Aug 2011, 03:43 PM
Hi,

I'm working on a treeview with Client Side Api.

On ClientNodeDropping event I check (business rule) if the source node can be dropped over the destination node.

If the source node can be dropped, everything is OK, the ClientNodeDropped event is fired and the destination node is expanded.

If the source node cannot be dropped, I cancel the event, the ClientNodeDropped event is not fired BUT the destination node is still expanded: Why? How to cancel this behavior?

Regards,
Frederic Dobon

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 10 Aug 2011, 04:18 PM
Hi Frederic,

This behavior is default to the OnClientNodeDragging event when the mouse stays a few seconds over an unexpanded node so it can expand and you can drop the node over some of its children. If you just drop the node and remove the mouse the node does not expand.

Hope this explains the issue.

Regards, Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start 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
Frederic Dobon
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or