Skip to main content
Tab

RibbonComboBoxItem Class

A ribbon item used to display the combo box functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class RibbonComboBoxItem :
    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.

ASPxRibbon_ComboItem

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

See Also