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

how to add a treenode include the <img>

1 Answer 20 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
william
Top achievements
Rank 1
william asked on 19 Jul 2011, 08:37 AM
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
 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 21 Jul 2011, 01:44 PM
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!

Tags
TreeView
Asked by
william
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or