Skip to main content
A newer version of this page is available. .
Tab

RibbonOptionButtonItem.OptionGroupName Property

Gets or sets the name of the group to which the option button belongs.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue("")]
public virtual string OptionGroupName { get; set; }

Property Value

Type Default Description
String String.Empty

A String value specifying the name of the group to which the button belongs.

Remarks

Use the OptionGroupName property to specify a grouping of option buttons for creating a mutually exclusive set of buttons. Use the OptionGroupName property when only one selection from a list of available options is possible.

When this property is set, only one option button in the specified group can be checked at one time. A button’s checked state is controlled by its RibbonToggleButtonItem.Checked property.

ASPxRibbon_OptionGroupName

...
<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">
     <SmallImage IconID="format_alignright_16x16">
     </SmallImage>
</dx:RibbonOptionButtonItem>
<dx:RibbonOptionButtonItem Name="Align Justify" OptionGroupName="Align">
     <SmallImage IconID="format_alignjustify_16x16">
     </SmallImage>
</dx:RibbonOptionButtonItem>
...
See Also