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

RibbonBar use SplitButton in Menu

3 Answers 43 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 30 Sep 2015, 05:42 PM

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>

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 01 Oct 2015, 06:27 AM
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
0
James
Top achievements
Rank 1
answered on 01 Oct 2015, 12:20 PM

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?

0
Accepted
Bozhidar
Telerik team
answered on 02 Oct 2015, 08:42 AM
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
Tags
RibbonBar
Asked by
James
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
James
Top achievements
Rank 1
Share this question
or