SplitButton with ToggleButton functionality

2 posts, 1 answers
  1. Ingmar
    Ingmar avatar
    8 posts
    Member since:
    Jun 2009

    Posted 06 Mar 2013 Link to this post


    Is it possible to add the functionality of a ToggleButton to a SplitButton, similiar to the bullets and numbering button elements in the ribbon of Word 2010?
    It should work as follows:
    - if the user clicks the button element, it should call a click event and toggle its state
    - it should be possible to set the toggle state by code
    - if the user clicks the arrow element, the drop down should open without firing the click event from above and not changing its state

    Any ideas are welcome.

  2. Answer
    Stefan avatar
    2908 posts

    Posted 11 Mar 2013 Link to this post

    Hi Ingmar,

    Thank you for writing.

    Attached you can find a sample solution demonstrating how to achieve the desired scenario. Please have a look at it and let me know if you need clarification of the approach.

    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top