Back to Devexpress

RibbonComboBoxItem Class

aspnet-devexpress-dot-web-c38855d8.md

latest3.8 KB
Original Source

RibbonComboBoxItem Class

A ribbon item used to display the combo box functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class RibbonComboBoxItem :
    RibbonEditItemBase
vb
Public Class RibbonComboBoxItem
    Inherits RibbonEditItemBase

Remarks

The RibbonComboBoxItem object is a ribbon item that implements the combo box functionality. The item’s settings can be accessed and customized using the RibbonComboBoxItem.PropertiesComboBox property. Use the RibbonComboBoxItem.Items property to access the collection of combo box items.

When the RibbonComboBoxItem value is changed, the client-side ASPxClientRibbon.CommandExecuted event is raised. You can use the ASPxClientRibbonCommandExecutedEventArgs.item argument property to determine the item related to the event. The ASPxClientRibbonCommandExecutedEventArgs.parameter argument property returns the new combo box value.

aspx
<dx:RibbonComboBoxItem Name="Font Family">
     <PropertiesComboBox NullText="Font Family"></PropertiesComboBox>
     <Items>
          <dx:ListEditItem Text="Arial" Value="Arial" />
          <dx:ListEditItem Text="Times New Roman" Value="Times New Roman" />
          <dx:ListEditItem Text="Calibri" Value="Calibri" />
          <dx:ListEditItem Text="Verdana" Value="Verdana" />
     </Items>
</dx:RibbonComboBoxItem>

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

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Show 13 items

Object StateManager CollectionItem RibbonItemBase RibbonEditItemBase RibbonComboBoxItem HERibbonComboBoxCommandBase

HECustomCssRibbonCommand

HEParagraphFormattingRibbonCommand

HEFontNameRibbonCommand

HEFontSizeRibbonCommand

BootstrapRibbonComboBoxItem

MVCxRibbonComboBoxItem

See Also

RibbonComboBoxItem Members

Ribbon

Item Types

DevExpress.Web Namespace