【发布时间】:2012-11-27 16:51:19
【问题描述】:
我正在使用 asp.net 树视图控件。我想为 .net 树视图控件添加 jquery 样式。但我不能这样做。请帮我解决这个问题。我需要 jquery 来平滑展开和折叠...
这是我的设计代码。我可以在asp.net控件中引用jquery
<asp:TreeView ID="MyTree" PathSeparator="|" ExpandDepth="1" runat="server" NodeIndent="15"
ShowLines="true">
<RootNodeStyle ImageUrl="~/images/folder-video.png" />
<ParentNodeStyle ImageUrl="~/images/root.png" />
<NodeStyle ImageUrl="~/images/node.png" />
<LeafNodeStyle ImageUrl="~/images/leaf_video.png" />
<SelectedNodeStyle BackColor="#B5B5B5"></SelectedNodeStyle>
<NodeStyle VerticalPadding="2" Font-Names="Tahoma" Font-Size="10pt" HorizontalPadding="2"
ForeColor="#000000"></NodeStyle>
<HoverNodeStyle Font-Underline="True" ForeColor="#6666AA"></HoverNodeStyle>
<Nodes>
<asp:TreeNode Text="Sunbusiness Solution" PopulateOnDemand="True" Value="Demos" />
</Nodes>
</asp:TreeView>
【问题讨论】:
-
你是说css风格?树视图已经正确展开...
标签: jquery asp.net c#-4.0 treeview