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

MenuItem command name and data attributes

1 Answer 61 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 24 Apr 2013, 12:33 PM
Do the menu buttons support something like this?

<Splitbutton CommandName="myCommand" Data="myData" .....>

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 25 Apr 2013, 08:56 AM
Hello MIchael,

The RibbonbarMenu and RibbonBarSplitButton are only container controls and do not support the CommandName property, as they don't trigger any command when clicked - they only open their dropdown to visualize the available child items. The CommandName and CommandArgument properties are supported by their respective children - RibbonBarMenuItem and RibbonBarButton. A small exception can be made for the SplitButton, which can trigger a command when pressed in the button area. However all this does is execute the command of its first child button.

You can easily check the available properties of each item in VisualStudio via Intellisense, as shown in the attached image.

All the best,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
RibbonBar
Asked by
Michael
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or