Back to Devexpress

RibbonOptionButtonItem Class

aspnet-devexpress-dot-web-54b017bb.md

latest3.7 KB
Original Source

RibbonOptionButtonItem Class

A ribbon item used to display the option button functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class RibbonOptionButtonItem :
    RibbonToggleButtonItem
vb
Public Class RibbonOptionButtonItem
    Inherits 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”).

aspx
<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.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem RibbonItemBase RibbonButtonItem RibbonToggleButtonItem RibbonOptionButtonItem BootstrapRibbonOptionButtonItem

See Also

RibbonOptionButtonItem Members

Ribbon

Item Types

DevExpress.Web Namespace