how to add a treenode include the <img>

2 posts, 0 answers
  1. william
    william avatar
    1 posts
    Member since:
    May 2011

    Posted 19 Jul 2011 Link to this post

    hello admin:

    when I add a client node use the script
    function addNode()
     var node = new Telerik.Web.UI.RadTreeNode();
     node.set_text(nodeText);

     we can add a node with text

    how to add a node with image

     node.set_img(nodeText); ????? or other methods ???

    thanks
     
  2. Plamen
    Admin
    Plamen avatar
    2968 posts

    Posted 21 Jul 2011 Link to this post

    Hi William,

    You can try using the property args._node.set_imageUrl().

    Hope this will help you.

    Greetings,
    Plamen Zdravkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top