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

Can a Splitbutton have a menu with submenus

2 Answers 73 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Elke
Top achievements
Rank 1
Elke asked on 24 Nov 2017, 10:46 AM

Is it possible to add a subitem to a menu of a splitbutton?

I need a hierarchy like this:

load

---category a

------file 1

------file 2

------.....

---category b
------file 1
------file 2
------.....

save

insert

...

 

Thanks in advance!

Elke

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Nov 2017, 01:36 PM
Hello, Elke,

Thank you for writing.  

You can find below a sample code snippet demonstrating how to add the subitems in RadSplitButton:
RadMenuItem item1 = new RadMenuItem("Category A");
RadMenuItem item11 = new RadMenuItem("File A1");
RadMenuItem item12 = new RadMenuItem("File A2");
item1.Items.Add(item11);
item1.Items.Add(item12);
RadMenuItem item2 = new RadMenuItem("Category B");
RadMenuItem item21 = new RadMenuItem("File B1");
RadMenuItem item22 = new RadMenuItem("File B2");
item2.Items.Add(item21);
item2.Items.Add(item22);
 
this.radSplitButton1.Items.Add(item1);
this.radSplitButton1.Items.Add(item2);



The following help article demonstrates how to get started with RadSplitButton and add items: https://docs.telerik.com/devtools/winforms/buttons/splitbutton/working-with-radsplitbutton-items

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Elke
Top achievements
Rank 1
answered on 25 Nov 2017, 03:49 PM
Thanks a lot. 
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Elke
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Elke
Top achievements
Rank 1
Share this question
or