我有带有 Telerik 组件的菜单。但我不能使用 Telerik。我需要这个没有 Telerik 的菜单。Stackoverflow 中的另一个人建议我使用 TreeView,但不能正常工作。我不能在这里使用截图!
代码 Telerik:
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="dbSqlDataSource"
GridLines="None" Skin="Windows7" Width="900px" Height="550px">
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<GroupHeaderItemStyle HorizontalAlign="Left" />
<MasterTableView AutoGenerateColumns="False" DataSourceID="dbSqlDataSource"
GroupsDefaultExpanded="False">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="sub_folder_path" FilterControlAltText="Filter sub_folder_path column"
HeaderText="sub_folder_path" SortExpression="sub_folder_path" UniqueName="sub_folder_path">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
<telerik:GridHyperLinkColumn DataNavigateUrlFields="security_group" DataNavigateUrlFormatString="groupinfo.aspx?group={0}"
DataTextField="security_group" FilterControlAltText="Filter column column" HeaderText="Security Group"
UniqueName="column">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridHyperLinkColumn>
<telerik:GridBoundColumn DataField="main_folder_path" FilterControlAltText="Filter main_folder_path column"
HeaderText="main_folder_path" SortExpression="main_folder_path" UniqueName="main_folder_path"
Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="group_manager" FilterControlAltText="Filter group_manager column"
HeaderText="group_manager" SortExpression="group_manager" UniqueName="group_manager"
Visible="False">
</telerik:GridBoundColumn>
</Columns>
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldAlias=" " FieldName="main_folder_path" HeaderValueSeparator="" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldAlias="Entry" FieldName="main_folder_path" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
<asp:SqlDataSource ID="dbSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT security_group, main_folder_path, sub_folder_path, group_manager FROM FOLDERS">
</asp:SqlDataSource>