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

radbutton image variable width

3 Answers 94 Views
Button
This is a migrated thread and some comments may be shown as answers.
Patrice Boissonneault
Top achievements
Rank 1
Patrice Boissonneault asked on 07 Mar 2011, 05:46 PM
Hello,

I'd like to use image radbuttons, but from what I can see, there is support only for 1 image.  This is not very flexible in case where button width is not known in advance (like for multiple languages site for example).

Is there any way to specify left, center and right button images rather than just 1 image for the entire button?

Thanks and keep up the great work.

Patrice

3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 08 Mar 2011, 08:46 AM
Hello Patrice,

Thank you for your feedback. For now we do not cover similar behavior. It is hard to predict what every single user would like to achieve. To support multiple images in a single button is not actually and option as we should nest unknown number of elements which should be manged and could cause functionality problems. If more people are interested in a similar behavior we will consider if this is possible to be done without to increase unnecessary the CSS and HTML and to decrease the control performance.

I think that for your scenario, you could use: Radios and Checkboxes Demo where you could find Radio and Checkboxes buttons with a button background. In that case, you could create a custom solution for the buttons be replacing the Button and Checkbox/Radio backgrounds. In that case you will need to create custom skin where the sprites will contain your specific images.

Tutorial: How to create RadButton Custom Skin

Greetings,
Bojo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Patrice Boissonneault
Top achievements
Rank 1
answered on 09 Mar 2011, 07:12 PM
Thanks for the answer.  Will look at the demo suggested.  But I still think an "expandable" image button feature would be welcome.

Your customer support is wonderful.

P
0
Pero
Telerik team
answered on 14 Mar 2011, 10:35 AM
Hi Patrice,

We will consider your suggestion when planning the new features of the RadButton control.

Thank you!

Greetings,
Pero
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Button
Asked by
Patrice Boissonneault
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Patrice Boissonneault
Top achievements
Rank 1
Pero
Telerik team
Share this question
or