Skip to main content
Tab

RibbonOptionButtonItem Class

A ribbon item used to display the option button functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public class RibbonOptionButtonItem :
    RibbonToggleButtonItem

Remarks

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”).

ASPxRibbon_OptionItem

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

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

See Also