ASP.NET C#下拉列表中的下拉列表 [英] Dropdown list within a dropdown list in ASP.NET C#

查看:121
本文介绍了ASP.NET C#下拉列表中的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在另一个下拉列表中创建一个下拉列表。



例如:我有一个数字从1到5的列表。

如果用户点击1,则所选值将为1.如果用户点击1旁边的+符号,它将打开另一个下拉列表的值为1.1,1.2等。现在用户如果用户点击1.2,那么主下拉列表中的选定值将为1.2。



是否可以创建此控件?如果可能有任何线索?



我尝试过的事情:



我无法想到任何能使这成为可能的事情。

Hi,

I am trying to make a dropdown list within another dropdown list.

For example:I have a list with numbers from 1 to 5.
If user clicks on 1, the selected value will be 1. If the user clicks '+' sign beside 1, it will open another dropdown list with values 1.1, 1.2 etc. Now user if user clicks 1.2, then selected value in main dropdown will be 1.2.

Is it possible to create this control? If possible any clue how??

What I have tried:

I can not think of anything that can make this possible.

推荐答案

没有本地控制可以做到这一点,但如果你谷歌jquery drop tree你会可能会找到其他人写过的插件。



Live Demo - jQuery EasyUI [ ^ ]



Giva Labs - mcDropdown jQuery插件| Giva [ ^ ]
There are no native controls to do that but if you google "jquery drop tree" you'll probably find some plug-ins other people have written.

Live Demo - jQuery EasyUI[^]

Giva Labs - mcDropdown jQuery Plug-in | Giva[^]


这篇关于ASP.NET C#下拉列表中的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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