Reputation: 2832
I'm new to the asp.net . I have placed dropdown list control on my web page. I want to bind image as well as text to the drop down list. The control should be unbound control.
How to do this?
thanks.
Upvotes: 1
Views: 1975
Reputation: 63972
Short answer is: you can't do it with a regular dropdown control. You need to cook your own version of something similar to what telerik does with their combobox control. If you look at the HTML rendered, you notice that they achieve this by using <div>
, <ul>
,<li>
and a lot of javascript
.
One alternative could be to use jQuery for this. There's a nice plugin called ImageDropDown that does what you need.
Upvotes: 1