开发者

How to create a node template for treeview?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜