This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / I try to use a control works like DropDownList in ASP.Net. But DropDownlist control doesn't allow multiple selection. Anyone know what control I can use ?
-graceye88(叶子);
2006-4-28
(#2934100@0)
-
I guess ListBox is what you want?
-leoxxll(leoxxll);
2006-4-28
(#2934130@0)
-
DropDownList在被设计时的本意就是单选的,为什么不用ListBox?
-binghongcha76(一只大猫);
2006-4-28
(#2934139@0)
-
Because List box need more space. I need at least 10 controls to be displayed on the screen. Can listbox only display as one line and when I click on it, it popup another box to display the list.
-graceye88(叶子);
2006-4-28
(#2934500@0)
-
sure, try it
-coolmao(酷猫);
2006-4-28
(#2934509@0)
-
Any property need to be set up? I can't popup another bigger box to do selection if I display the items in one line.I think maybe I have to combine the dropdownlist and listbox. When I click on dropdownlist, I set the listbox.Visible=true. But the problem is how to set the position of the listbox.
-graceye88(叶子);
2006-4-28
{182}
(#2934602@0)
-
为什么不只用ListBox?只要把ListBox的Height定得只有1行那么宽,不就行了?然后一可以利用Javascript动态修改ListBox的Height,达到好象PopUp的效果.
-leoxxll(leoxxll);
2006-4-28
(#2934815@0)
-
That is what I want.However, the listboxs would dynamically generated in a table row and in this table row there are othe controls ...If I changed the height of the listbox., the height of the table row would be changed. So I think the screen would not look nice.
-graceye88(叶子);
2006-4-28
{129}
(#2934880@0)
-
不想影响到其它control,那就把它放到单独的<DIV> position 使用absolute. 不要放到table里.
-leoxxll(leoxxll);
2006-4-28
(#2934892@0)