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

[Solved] set custom Template on the fly

0 Answers 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JulioValiente
Top achievements
Rank 1
JulioValiente asked on 02 Mar 2012, 02:26 PM
I use the  Telerik.Web.Mvc.UI.TreeViewItem. Is it posible to set the custom template of the TreeViewItem object?

should be something like this: 
TreeViewItem item = new TreeViewItem();

item.Value = "1";
item.Text = "Item1";
item.Template = <html code here>


i tried .Template property. but the text editor says the it is ready only. 

hope anyone can help me.
Tags
TreeView
Asked by
JulioValiente
Top achievements
Rank 1
Share this question
or