I'm using the RadTreeView control in a ASP.Net user control. Each of my nodes have a ImageUrl and text. I need to add a button to each node that triggers an event when the button is clicked.
You can use templates which allows you to embed any context inside a RadTreeNode.
Take a look at the following documentation and demo. Templates Overview. TreeView / Templates.
Thanks. The problem I have is that I don't want to change our existing RadTreeView in our user control. Can I use the Template and add a button programmaticly? Would this be done via the NodeBound() event?
0
Ivan Zhekov
Telerik team
answered on 05 Aug 2011, 04:09 PM
Hello Jerry,
Yes, you could use the NodeBound event or the OnClientNodeDataBound if you want to use JS.
Should you decide to go with client events, it's better to use the OnLoad event of the RadTreeView, as adding new content to a node, while there are other loading, will slow down that loading.