带有分组项目的下拉列表(封装) [英] Drop down list with grouped items (capsulate)

查看:56
本文介绍了带有分组项目的下拉列表(封装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我们如何以分组形式(封装)在Web窗体中创建下拉列表.

我的意思是每个小组旁边都有加号来扩展它.

最好的问候.

Hello

How we can make drop down list in web form with grouped items (capsulate).

I mean there are plus beside of each group for extending that.

Best regards.

推荐答案

在ASP.NET中,对每个组旁边有加号"的适当控制是System.Web.UI.WebControls.TreeViewhttp://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview .aspx [ ^ ].

-SA
In ASP.NET, the adequate control with "plus beside of each group" is System.Web.UI.WebControls.TreeView, http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.aspx[^].

—SA


此链接将组添加到ASP.NET DropDownList控件 [ ^ ]没有展开/折叠结构,但它应该可以帮助您入门.

[具有OptionGroup支持的ASP.NET DropDownList [此处中所述的另一种方法 [ ^ ].
This link Adding groups to the ASP.NET DropDownList control[^] does not have an expand / collapse structure but it should help you get started.

This[^] should give you an extensible option as well.

ASP.NET DropDownList with OptionGroup support[^] is another neat article.

JQuery can give you one more approach as described here[^].


这篇关于带有分组项目的下拉列表(封装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆