TreeView 控件 - 是否可以在没有回发的情况下折叠?
到目前为止,我在网上找到的所有关于 TreeView 的内容都非常令人困惑。我知道它有一个内置回调,开发人员可以按需从服务器填充节点等。
我了解按需填充节点 - 按需从服务器填充的节点(扩展)与回调一起使用 - 并且不工作刷新整个页面 - 但它仍然会去服务器获取这些节点,即使它是无缝的。
但我不知道/不明白的是是否可以在没有回调或回发的情况下折叠分支。从逻辑上讲,为什么我需要去服务器折叠节点——除非是为了更新控制状态?
换句话说,TreeView 是否附带任何连接的客户端事件??? (我找不到任何)或者它纯粹是一个服务器端控件,我认为我唯一能做的就是使用回调功能来显得无缝。
我正在使用 asp.net 3.5/c#
Everything i found online so far is very confusing about TreeView. I know it has a built-in callback, that developer can populate nodes from server on demand, etc etc.
I understand the populate node on demand - nodes populated from the server on demand (expand) works with the callback - and doesn't refresh the whole page - but it still goes to the server to get these nodes even though it is seemless.
But what I don't know/understand is whether it's possible to collapse the brach w/o callback or postback. Logically, why would I need to go to the server to collapse nodes - unless it is to update the control state?
In other words, does TreeView come with ANY client side events wired-up??? (i couldn't find any) or is it purely a server side control where the only think i can do to appear seemless is use callback feature.
I am using asp.net 3.5/c#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看:客户端展开/折叠所有节点对于 ASP.NET 2.0 树视图
Please check this out: Client Side Expand/Collapse All Nodes For ASP.NET 2.0 Treeview