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

SplitButton with ToggleButton functionality

1 Answer 72 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Ingmar
Top achievements
Rank 1
Ingmar asked on 06 Mar 2013, 08:28 PM
Hi,

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.

Thanks
Ingmar

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 11 Mar 2013, 11:18 AM
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.
 

Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
RibbonBar
Asked by
Ingmar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or