How to display selected button

5 posts, 1 answers
  1. Justin
    Justin avatar
    35 posts
    Member since:
    Apr 2008

    Posted 15 Feb 2009 Link to this post

    Question - is it possible to maintain the visual state of a RadButtonElement or a RadImageButtonElement once the button is clicked?  By this I mean exactly the same thing that happens in the text editor for posting something to this forum, if you click the  bold, italics or underline button.  It stays "selected" until you click the button again.

    I am having a hard time getting similar functionality out of button elements on RadRibbonBar to show that a specific option is in use currently...

    Thanks!

    Justin
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 16 Feb 2009 Link to this post

    Hi Justin,

    Thanks for writing.

    In your case, I would suggest that you use the RadToggleButtonElement instead of RadButton or RadImageButton. The RadToggleButton control is particularly designed to support the behavior you require.

    You can easily add RadToggleButtonElement to your chunks in a RadRibbonBar by clicking the Edit Items action from the Smart Tag of the chunk you want to edit.

    I hope this will help you. Do not hesitate to get back to me in case of further questions.

    Best wishes,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Justin
    Justin avatar
    35 posts
    Member since:
    Apr 2008

    Posted 16 Feb 2009 Link to this post

    Deyan, thank you for your response.  I was looking at the toggle button for this but was not sure, appreciate the suggestion...

    Justin
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Feb 2009 Link to this post

    Hi Justin,

    Thanks for getting back to me.

    I hope my suggestion works for you.

    Please, let me know if you need further assistance :-)

    Greetings,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Justin
    Justin avatar
    35 posts
    Member since:
    Apr 2008

    Posted 17 Feb 2009 Link to this post

    ToggleButton seems to be providing me exactly what I was looking for - thanks.

    Justin
Back to Top
UI for WinForms is Visual Studio 2017 Ready