Asked by:
DropDownList 5 visible rows then scroll?

Question
-
User16660303 posted
If I have 80 names in my dropdownlist, how do I specify how many visable rows are displayed before the scrollbar has to be used?
I want dropdownlist to show the first 5 names and the rest you have to scroll for?
I thought this would be simple but I have searched the forum (and the dropdownlist property pages) and have not found an answer.
Thx,
Carl
Friday, June 23, 2006 10:47 AM
All replies
-
User541108374 posted
Hi,
and welcome to the ASP.NET forums.
Could it be that you're looking for the ListBox control?
Update: the ListBox control has the property Rows which you can use. The default's according to the documentation 4.
Grz, Kris.
Friday, June 23, 2006 10:51 AM -
User16660303 posted
No, I want a DropDownList that works as I described in my OP, the listbox control with rows=5 will show 5 names all the time (that's not what I want).
Carl
Friday, June 23, 2006 10:56 AM -
User1923880652 posted
No there is n't any such dropdown
What you can do is place a textbox animage and a panel[with a listview control
TextBox Image
Panel
[Listview]
Image is like a arrow of dropdown
Place textbox and image in such a way that they appear like a combo
on image click let the panel be visble which contains a list view of initial item to 5
You have to set the panel in such a way that when you click the image button it appear like you have click the combo
I have read this ideaSome time Back hope it helps youSaturday, June 24, 2006 7:18 AM -
User16660303 posted
Sounds like it could work! I'll give it a try at work on monday.
Thanks,
Carl
Saturday, June 24, 2006 7:46 AM -
Saturday, June 24, 2006 12:51 PM
-
User1923880652 posted
Nice combo But rendering to much client script for a the task
Saturday, June 24, 2006 2:11 PM -
User541108374 posted
Most likely because of the autocomplete functionality it offers. But the code's freely downloadable and could be used as a start for the OP.
Grz, Kris.
Saturday, June 24, 2006 2:24 PM -
User1923880652 posted
what the OP ??Sunday, June 25, 2006 4:49 AM -
User541108374 posted
what the OP ??OP stands for Original Poster. Or better yet: the one who started the thread.
Grz, Kris.
Sunday, June 25, 2006 5:21 AM -
User16660303 posted
Or even better yet: try this free control: ComboBox.
Grz, Kris.
When I use that example on their page, after I click the "Click Me" button, another control appears to the right of the ComboBox control while a postback occurs. Anyone else notice that?
Carl
Sunday, June 25, 2006 8:24 AM -
User541108374 posted
Anyone else notice that?I didn't see it the first time but after clicking multiple times on the button I noticed something like an "echo" of the textbox control that's being used to create the effect of a combobox.
Grz, Kris.
Sunday, June 25, 2006 10:42 AM -
User-2062274770 posted
What browser? I'm not seeing it in FF1.5; how many clicks did it take?.
I guess the "too much Javascript" would preclude something like EasyListBox (though ELB's Javascript is provided in a separate file so it doesn't add to page size)... there's a great promotional discount right now if you're interested.
Cheers,Monday, June 26, 2006 4:04 PM -
User16660303 posted
I guess the "too much Javascript" would preclude something like EasyListBox (though ELB's Javascript is provided in a separate file so it doesn't add to page size)... there's a great promotional discount right now if you're interested.
Cheers,Well, since this really the first time I wanted this particular feature in the 1.5+ years of using VS 2005 Pro(& betas), I can't really justify the cost.
The $10 charity price is great for the hobby web page folks, but I'm talking 5-7 internal (intranet) web servers and to spend that much scratch on something that won't be used that often (in our case anyway) is not going to happen.
Carl
Monday, June 26, 2006 6:26 PM -
User-2062274770 posted
Understood. Thanks for the market feedback; it's always appreciated.
If you ever need the rest of the feature set, let me know :) In the meantime, I suggest doing a site-specific Google search on codeproject.com, for the terms "multi select dropdown". I know you don't need multiple selects, but the idea is the same... and once you get the positioning down, you can put a listbox right under a text field and hack together something that works for your situation (assuming Andy's combobox isn't quite cutting it for you).
Cheers,Tuesday, June 27, 2006 12:27 AM -
User16660303 posted
Understood. Thanks for the market feedback; it's always appreciated.
If you ever need the rest of the feature set, let me know :) In the meantime, I suggest doing a site-specific Google search on codeproject.com, for the terms "multi select dropdown". I know you don't need multiple selects, but the idea is the same... and once you get the positioning down, you can put a listbox right under a text field and hack together something that works for your situation (assuming Andy's combobox isn't quite cutting it for you).
Cheers,
Maybe you need to break the feature set up into seperate controls and offer a lower price on one feature or another.
Carl
Tuesday, June 27, 2006 8:16 PM -
User1119954915 posted
and offer a lower price on one feature or another.How can you possibly beat the current price of $10 or $20? it's worth that to even just check it out
Tuesday, June 27, 2006 8:38 PM -
User16660303 posted
and offer a lower price on one feature or another.How can you possibly beat the current price of $10 or $20? it's worth that to even just check it out
He has the controls demo'ed on his website, no need to buy to get the gist of what the control can do.
As for the the $10, That's a single website license, My requirement would fall into his Enterprise price I believe (http://easylistbox.com/purchase.aspx)
which is *almost* the cost of one of our servers themselves), Too expensive for a control IMHO. I'll live with 30 names showing in a dropdownlist before I drop almost $2600-$3000 on a control.
Carl
Wednesday, June 28, 2006 5:22 PM -
User-2062274770 posted
My requirement would fall into his Enterprise price I believe (http://easylistbox.com/purchase.aspx)
Just for the record, if they're all in one location, the Facility license would cover it. If you only have one website per server, you might get away with less than that (but I understand that your need may not make it worth your while)
Also, to clarify the DotNetCharity promo price -- assuming your websites are IE only and we're talking about one website per server:
(1 website/server)(7 servers)($10/(website)) = $70
I figured since it was brought up here it should be addressed here... but really, I'll stop now :)Wednesday, June 28, 2006 6:58 PM -
User16660303 posted
My requirement would fall into his Enterprise price I believe (http://easylistbox.com/purchase.aspx)
Just for the record, if they're all in one location, the Facility license would cover it. If you only have one website per server, you might get away with less than that (but I understand that your need may not make it worth your while)
Also, to clarify the DotNetCharity promo price -- assuming your websites are IE only and we're talking about one website per server:
(1 website/server)(7 servers)($10/(website)) = $70
I figured since it was brought up here it should be addressed here... but really, I'll stop now :)
Each server is in a different physical location.
I'm not quite sure what you mean by 1 Web Site/Server..I'm assuming what you mean by that is that IIS is running "Default Website" on Port 80 and some "virtual" sites that use a different Port # on the same instance of IIS? If so then yes we do have that kind of setup but they are specialty sites (the virtual ones) that would not have any use for the control (3rd party web apps that monitor their servers and such).
So if the control is only running on "Default Website" but not the virtual sites, would that be permitted per the license or would the control somehow invalidate itself if it detects virtual sites?
Carl
Wednesday, June 28, 2006 8:10 PM -
User-2062274770 posted
What I mean is that if you are running the control on only one website per server (i.e. in the bin directory of that web app), then the single-website license would apply for that instance. The other websites on the server will not be running EasyListBox, and henceforth would not require a license.
Thursday, June 29, 2006 12:38 AM -
User16660303 posted
What I mean is that if you are running the control on only one website per server (i.e. in the bin directory of that web app), then the single-website license would apply for that instance. The other websites on the server will not be running EasyListBox, and henceforth would not require a license.
Ok..still confused
Website to me means a collection of webpages available on a webserver (lets forget virtual websites for now). Any webpage on that site can use the control.
Website to you means a single webpage? Only 1 page on that website can use the control.
Which statement is most accurate.
Carl
Thursday, June 29, 2006 6:41 AM -
User-2062274770 posted
I think we're saying the same thing, but in different time zones.
You mentioned one website (the default site as defined by IIS in this case), and then other sites on other ports. If something is on another port, then -- to my knowledge -- it is a separate website. I'm not sure how that turned into "a single web page"...
Thursday, June 29, 2006 5:22 PM