A newer version of this page is available. Switch to the current version.

RibbonOptionButtonItem Class

A ribbon item used to display the option button functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll


public class RibbonOptionButtonItem :


The RibbonOptionButtonItem object is a ribbon item that implements the option button functionality. To combine buttons into a group, specify their RibbonOptionButtonItem.OptionGroupName property. When this property is set, only one option button in the group can be checked at one time.

When the RibbonOptionButtonItem is clicked, the client-side ASPxClientRibbon.CommandExecuted event is raised. You can use the ASPxClientRibbonCommandExecutedEventArgs.item argument property to determine the clicked item. The ASPxClientRibbonCommandExecutedEventArgs.parameter argument property returns the textual representation of the item’s RibbonToggleButtonItem.Checked property value (i.e., “true” or “false”).


<dx:RibbonOptionButtonItem Name="Align Left" OptionGroupName="Align">
     <SmallImage IconID="format_alignleft_16x16">
<dx:RibbonOptionButtonItem Name="Align Center" OptionGroupName="Align">
     <SmallImage IconID="format_aligncenter_16x16">
<dx:RibbonOptionButtonItem Name="Align Right" OptionGroupName="Align" Checked="True">
     <SmallImage IconID="format_alignright_16x16">
<dx:RibbonOptionButtonItem Name="Align Justify" OptionGroupName="Align">
     <SmallImage IconID="format_alignjustify_16x16">

To learn more about ribbon item types, see the Item Types topic.

See Also