Need a custom dropdownlist control


What I have currently is a 100px wide dropdownlist bound to a dataview. The dropdownlist is chopping off the text in the dropdownlist. The problem with expanding the width of the dropdownlist is that it pushes all of the controls to the right of the dropdownlist off the page. Ideally the width of the dropdownlist would need to be 300px however I only have 100px of real estate.

I need a dropdownlist control that has 2 width properties. The first width property is the same as what the ddl has currently, it sets the width of the control. The second width property should control the width of the ddl when it is expanded. So when expanded the actual control stays at 100px and the drop down portion expands to 300px or whatever width I need.

What I am trying to accomplish is a feature in PowerBuilder (which I do not know) for Windows. The drop down list in powerbuilder when expanded has a width that is adjustable and completely seperate from the width of the actual drop down list.

Can someone instruct me on how to build something like this or recommend a 3rd party custom control I can purchase. I have already googled the web and came up empty.



Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can try the custom drop down controls:

There is an option of using layers with the Javascript that will be visible when the dropdown is clikced. In this way the drop-down width will remain same but you can increase or descrease the width of the layer on runtime.  

HTH, Nauman.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.