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

How to get the second tree view control name

2 Answers 42 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 06 Mar 2009, 09:18 AM
Hi Team,
    How to get the second tree view control while dropping a node from the 1st tree view control . I am using  the following method

function

onNodeDropping(sender, args)

I can able to get the 1st tree view control name as : 

 

var

draggedTree = sender._uniqueId;

I need to this to restrict user to drop nodes from second tree view control into the 1st tree view control .

Regards
Manoj

 

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Mar 2009, 06:57 AM
Hi Manoj,

Try the following code snippet to get the destination treeview control while dropping the node and canelling the event.

JavaScript:
<script type="text/javascript">  
function ClientNodeDropping(sender, eventArgs)  //Event is Attached to RadTreeView2  
{  
    if(eventArgs.get_destNode().get_treeView().get_id()== "RadTreeView1"//Get the destination TreeView  
    {  
        alert("Not allowed");  
        eventArgs.set_cancel(true);  
    }  
}  
</script> 

Refer the link OnClientNodeDropping for more information.

Thanks,
Princy.
0
Manoj
Top achievements
Rank 1
answered on 09 Mar 2009, 10:06 AM
Hi Princy,
    It's work for me . Thanks

Regards
Manoj
Tags
TreeView
Asked by
Manoj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Manoj
Top achievements
Rank 1
Share this question
or