Can a Splitbutton have a menu with submenus

3 posts, 1 answers
  1. Elke
    Elke avatar
    8 posts
    Member since:
    Apr 2013

    Posted 24 Nov 2017 Link to this post

    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. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    2805 posts

    Posted 24 Nov 2017 Link to this post

    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.
  3. Elke
    Elke avatar
    8 posts
    Member since:
    Apr 2013

    Posted 25 Nov 2017 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thanks a lot. 
Back to Top