How to get the second tree view control name

3 posts, 0 answers
  1. Manoj
    Manoj avatar
    75 posts
    Member since:
    Dec 2008

    Posted 06 Mar 2009 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Mar 2009 Link to this post

    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.
  3. Manoj
    Manoj avatar
    75 posts
    Member since:
    Dec 2008

    Posted 09 Mar 2009 Link to this post

    Hi Princy,
        It's work for me . Thanks

    Regards
    Manoj
Back to Top