RibbonBar use SplitButton in Menu

4 posts, 2 answers
  1. James
    James avatar
    2 posts
    Member since:
    Jan 2015

    Posted 30 Sep 2015 Link to this post

    If I use a SplitButton inside of a Menu when creating my xml to load in to the ASP.NET RibbonBar, it does not place the SplitButton buttons in any kind of dropdown.  It places them at the same level of Menu.  Here is the XML:

     <?xml version="1.0"?>
    <RibbonBar>
    <ApplicationMenu Text="Home">
    <ApplicationMenuItem Text="Item1" />
    </ApplicationMenu>
    <Tab Text="Tab1" Size="Small" ImageUrl="/Images/Image1.png">
    <Group Text="Group1">
    <Button Text="Button1" Size="Large" ImageUrl="/Images/Image2.png" />
    <Menu Text="A Menu" Size="Medium" ImageUrl="/Images/Image3.png">
    <MenuItem Text="MenuItem1" Size="Large" ImageUrl="/Images/Image4.png"></MenuItem>
    <SplitButton Text="SplitButton" Size="Large" ImageUrl="/Images/Image5.png" ImageUrlLarge="/Images/Image5.png">
    <Button Text="SplitButton_Button1" Size="Medium" ImageUrl="/Images/Image6.png" />
    </SplitButton>
    </Menu>
    </Group>
    </Tab>
    </RibbonBar>

     

  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 01 Oct 2015 Link to this post

    Hi,

    Placing SplitButton inside a Menu is not supported. You can only place MenuItems inside a menu.

    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. James
    James avatar
    2 posts
    Member since:
    Jan 2015

    Posted 01 Oct 2015 in reply to Bozhidar Link to this post

    Thank you for your reply.

     I'm using the Menu tag because I do want a large button that drops down and allows the user to select a MenuItem.

    What should I do if I want one of those MenuItems to actually act like a nested Menu so that when hovered over, it ​displays additional MenuItems?

  5. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 02 Oct 2015 Link to this post

    Hi,

    In that case you should nest the MenuItems in the xml. Like so:
    <Group Text="Group" EnableLauncher="true">
      <Menu Size="Large" Text="Menu">
        <MenuItem Text="Parent Item">
          <MenuItem Text="Child Item"></MenuItem>
        </MenuItem>
      </Menu>
    </Group>


    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top