Skip to main content
Tab

RibbonComboBoxItem.Items Property

Gets the collection of items displayed within the RibbonComboBoxItem‘s drop-down window.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public virtual ListEditItemCollection Items { get; }

Property Value

Type Description
ListEditItemCollection

A ListEditItemCollection object that is the collection of items.

Example

The following part of the Ribbon - Features online demo illustrates how to populate the Items collection of a RibbonComboBoxItem object in markup.

The image below shows the result.

ASPxRibbon_ComboBoxItems

<dx:RibbonComboBoxItem Name="Font Family">
     <PropertiesComboBox NullText="Font Family"/>
     <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>
<dx:RibbonComboBoxItem Name="Font Size">
     <PropertiesComboBox NullText="Font Size"/>
     <Items>
          <dx:ListEditItem Text="10" Value="10" />
          <dx:ListEditItem Text="11" Value="11" />
          <dx:ListEditItem Text="12" Value="12" />
          <dx:ListEditItem Text="14" Value="14" />
          <dx:ListEditItem Text="16" Value="16" />
          <dx:ListEditItem Text="18" Value="18" />
     </Items>
</dx:RibbonComboBoxItem>
See Also