RadButtonElement highlighted?

2 posts, 1 answers
  1. Kirk Couser
    Kirk Couser avatar
    26 posts
    Member since:
    Apr 2009

    Posted 23 Jul 2009 Link to this post

    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?
  2. Answer
    Boryana avatar
    330 posts

    Posted 24 Jul 2009 Link to this post

    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.

    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. DevCraft R3 2016 release webinar banner
Back to Top