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

RadButtonElement highlighted?

1 Answer 135 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kirk Couser
Top achievements
Rank 1
Kirk Couser asked on 23 Jul 2009, 03:43 PM
First off, I am using the Q2 2009 RadControls for Winforms in VS 2008 SP1.  I have a panel bar filled with RadButtonElements under each RadPanelBarGroupElement.  Upon clicking on one of the RadButtonElements, the panel on the right of the panelbar gets filled with the appropriate data.  My problem however is that the client I am working for would like to keep the RadButtonElement that they clicked on highlighted, just like it is when you hover your mouse over it until another RadButtonElement is selected.  Can this be done?

1 Answer, 1 is accepted

Sort by
0
Accepted
Boryana
Telerik team
answered on 24 Jul 2009, 11:06 AM
Hi Kirk Couser,

Thank you for contacting us.

Instead of using RadButtonElements it might be more convenient to use RadToggleButtonElements. At the same time you can subscribe to their MouseDown() event and set the ToggleState of all the buttons to Off. Thus, every time you click on a button it will change its toggle state to On. If you further click another button, the ToggleState of the first button will be set to Off and the one of the second will be set to On. I have prepared for you a sample project that demonstrates this workaround. Please, find the attached project and let me know if it matches your requirements.

I hope it is helpful. If you have further questions, do not hesitate to contact me back.

Regards,
Boryana
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.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Kirk Couser
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or