We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Image dropdown control

dalsandhu
dalsandhu asked
on
Medium Priority
891 Views
Last Modified: 2012-06-27
Hi

Has anyone come across a dropdown control for asp.net that displays images rather than text? Preferably showing a 2-D list rather single items per row?

Thanks
Comment
Watch Question

Top Expert 2006
Commented:
Hi dalsandhu,

Sounds like what you want is not a DropDownList at all.  Perhaps you can use a DataList or Repeater control to accomplish what you want and wrap it in a <div> tag like this one:

<div style="overflow: auto; width: 400px; height: 200px;">
  ... your DataList or Repeater ...
</div>

This will cause the DataList or Repeater to be scrollable, like a DropDownList.  But since you would be creating it yourself, you can make it "2-D" or scroll like a normal list.  Just something to consider.

-- Jason

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks Jason. Yes, not a bad idea.

The reason I want something like a dropdown is that I want the list to disappear when not in use. My page looks and behaves more like a winform, and I'd rather keep it like that. If I use a div it would shift all controls down to make room. Perhaps absolute positioning could help, but I need the list to disappear when it's lost focus, which could be tricky. I shall have a go at this unless I hear from someone re a control.

Cheers,
Dal

Author

Commented:
Hi - I have abandoned this idea. Am using a dropdown with text only. When the user selects a row the appropriate graphic is displayed in an adjacent image field.

Thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.