Changing the tree-node's style on dragging

Thread is closed for posting
1 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 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

This Code Library is part of the product documentation and subject to the respective product license agreement.