RadTreeView SourceDragNode not set
We have a problem with RadTreeView Drag and Drop.
Some previously working code was reorganised (by compiling a user control into a dll).As an initial test we used this compiled UserControl on a single page on an empty asp.net (non-SiteFinity) website. This works fine – so no damage was done by the compiling process. However our end goal is to use the compiled user control (comprising the RadTree Control) on a SiteFinity page.
When we do this, drag and drop fails due to the SourceDragNode element of the RadTreeNodeDragDropEventArgs parameter being null (on the serverside RadTreeView OnNodeDrop event). When we debug back into javascript, breaking on the clientside onClientNodeDropping event we see the source node element is correctly set. Somehow, between here and the postback arriving at the server the sourcedragNode is lost.It appears to be therefore a clientside issue with the RadTreeView clientside code. What happens between the onClientNodeDropping event and the postback that could clear the sourcedragNode?
Can anyone suggest what might be causing this?
Thanks,
Peter
I'm seeing the same thing and narrowed it down to having this as the client node dropping function
function OnClientNodeDropping(sender, args)
var sourceNode = args.get_sourceNode();
var destNode = args.get_destNode();
destNode.get_nodes().add(sourceNode);
I'm not sure if this should be causing this problem though.
Hello Peter,
Can you please let us know if your control is working via postback? If yes, then please check if your Sitefinity pages have enabled ViewState (disabled by default)? If not please try enabling page's ViewState to see if the control will work properly.
All the best,
Radoslav Georgiev
the Telerik team