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

TreeViewItem Control Template?

1 Answer 74 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
MattC2007
Top achievements
Rank 1
MattC2007 asked on 22 Jan 2010, 03:59 PM
I was wondering how to go about creating a treeviewitem with three images to the left of the text. I need these images to have a left click mouse event. I create them dynamically in the code. I don't want to use a datatemplate. It appears to me that I would have to modify the control template. I was wondering if someone could provide a simple example of my request?

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 25 Jan 2010, 01:00 PM
Hello Matt,

Please find attached a sample project that demonstrates how to alter the ControlTemplate of RadTreeViewItem and add three images before the text. Also, please have a look at this help article, as it explains how to edit the ControlTemplate of our controls. Let me know if you have additional questions.

Greetings,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
MattC2007
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or