radbutton image variable width

4 posts, 0 answers
  1. Patrice Boissonneault
    Patrice Boissonneault avatar
    28 posts
    Member since:
    Nov 2009

    Posted 07 Mar 2011 Link to this post

    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
  2. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 08 Mar 2011 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Patrice Boissonneault
    Patrice Boissonneault avatar
    28 posts
    Member since:
    Nov 2009

    Posted 09 Mar 2011 Link to this post

    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
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 14 Mar 2011 Link to this post

    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!
Back to Top