Changing the tree-node's style on dragging

1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 15 Mar 2006 Link to this post


    Requirements

    r.a.d.treeview version

    5.1.3.0

    programming language

    VB

    .NET version

    1.1

    Visual Studio version

    2002/2003

    browser support

    all supported by r.a.d.treeview


    This sample project shows how to change the style of a tree-node that is being dragged onto another treeview. 

    The project uses client-side approach to get the dragged node and change its style:

    var dragElement = treeView.DragClone.getElementsByTagName("SPAN")[0];     
         
    dragElement.style.fontSize = "15px";
    dragElement.style.color = "red";

    You can add more styles (properties) according to your needs. 
Back to Top