关于 c#:如何在单击节点文本时在 ASP.NET 动态 TreeView 控件中展开节点(父节点)? | 珊瑚贝

How do I expand a node (parent node) in an ASP.NET Dynamic TreeView Control upon click of the text of the node?


我有一个树视图控件,我从 DataTable.

在服务器端填充这些节点及其子节点

如何在单击呈现的文本时展开控件的任何节点?

更改节点的 TreeNodeSelectAction 属性没有帮助。

我知道此属性适用于非动态填充的树视图控件。

感谢任何帮助。

  • 与全班其他人分享您的代码。


对不起,忘了回到这个。我搞砸了使用内置的”TreeView_ToggleNode”javascript 函数,它与 TreeView 控件一起呈现。得到了我需要的东西。


来源:https://www.codenong.com/14647382/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10841.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?