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

Is it possible to change the +/- icons?

1 Answer 268 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Saj
Top achievements
Rank 1
Saj asked on 13 Jul 2011, 08:36 PM
Is it possible to replace the standard +/- icons for exanding and collapsing nodes with my own custom images?

I found this article:

http://www.telerik.com/help/winforms/treeview-working-with-nodes-node-images.html

Which suggests this is possible.  However I was struggling to find the StateImageKey property and a further article on the web seemed to suggest it was removed from the laster version of the components.

Any help gratefully recieved.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Jul 2011, 03:02 PM
Hello Martin,

Thank you for writing.

You can set the expand/collapse images of the nodes in RadTreeView, by setting the following properties:
radTreeView1.TreeViewElement.ExpandImage = Resources.expand;
radTreeView1.TreeViewElement.CollapseImage = Resources.collapse;

I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
 
Regards,
Stefan
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
Saj
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or