This is a migrated thread and some comments may be shown as answers.

Align image by right side inside dropdown list

2 Answers 86 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 01 Jun 2011, 05:22 PM
Hello,

is there a way to align images for each list item by the right side?

something like this

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jun 2011, 07:41 AM
Hello Max,

I am not quite sure about your scenario and I suppose this help article might be useful for you.
Templates Overview.

Please elaborate your scenario if it doesn't help.

Thanks,
Shinu.
0
Kalina
Telerik team
answered on 03 Jun 2011, 04:18 PM
Hello Max,

You can easily achieve this layout using the RadComboBox Templates and Custom Attributes.
At first you can set the ImageUrl as a custom attribute to every item while databinding the control.
Then at markup you can implement the layout that you prefer within the ItemTemplate.
I prepared a small example for you - please find it attached.

All the best,
Kalina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
Max
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kalina
Telerik team
Share this question
or