开发者

How to create a node template for treeview?

开发者 https://www.devze.com 2023-03-27 17:03 出处:网络
I want to add a link beside the node text in treeview. like the following figure: After some googling, I found that there\'s no NodeTemplate in the treeview and creating the node text manually lik

I want to add a link beside the node text in treeview. like the following figure:

How to create a node template for treeview?

After some googling, I found that there's no NodeTemplate in the treeview and creating the node text manually like this sample is the only way.

开发者_开发百科

The only problem I have is that the built-in selection functionality isn't worked anymore, because the internal javascript select function isn't called.

Any idea about a workarround or another way to implement my goal?


Have you tried RenderPostText? http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenode.renderposttext.aspx

http://kb.cnblogs.com/a/1379715/

0

精彩评论

暂无评论...
验证码 换一张
取 消