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

How to display selected button

4 Answers 137 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 16 Feb 2009, 01:44 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 16 Feb 2009, 08:20 AM
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.
0
Justin
Top achievements
Rank 1
answered on 16 Feb 2009, 09:53 PM
Deyan, thank you for your response.  I was looking at the toggle button for this but was not sure, appreciate the suggestion...

Justin
0
Deyan
Telerik team
answered on 17 Feb 2009, 09:47 AM
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.
0
Justin
Top achievements
Rank 1
answered on 17 Feb 2009, 05:07 PM
ToggleButton seems to be providing me exactly what I was looking for - thanks.

Justin
Tags
RibbonBar
Asked by
Justin
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Justin
Top achievements
Rank 1
Share this question
or