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

folder icon in node

1 Answer 36 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 27 Aug 2012, 11:37 AM
hi,,
 I want to show a folder icon in every node of a RadTreeview. How can I do that?

thanks..

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Aug 2012, 11:49 AM
Hi Hash,

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

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

Hope this helps.

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