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

Displaying image in a node of treeview

1 Answer 44 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Aneesh
Top achievements
Rank 1
Aneesh asked on 23 May 2012, 11:07 AM
I have a rad treeview. i want an image to be shown with every node. How can I do that. please help me.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 23 May 2012, 12:15 PM
Hi Aneesh,

Try the following code snippet to add image in each node of a RadTreeView.

C#:
foreach (RadTreeNode node in RadTreeView1.GetAllNodes())
        {
            node.ImageUrl = "~/Images/img.jpg";
        }

Hope this helps.

Thanks,
Princy.
Tags
TreeView
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or