Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RadioComboBoxStyleSettings.ShowEmptyItem Property

Gets or sets whether the radio combo box displays the empty item. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool ShowEmptyItem { get; set; }

#Property Value

Type Description
Boolean

true, to show the empty item; otherwise, false.

#Remarks

The ComboBoxEdit control can display the empty item above its other items. When an end-user selects the empty item, the control’s EditValue is set to null.

Use the ShowEmptyItem property to control the availability of the empty item in the combo box dropdown list. The EmptyItemText property allows you to change the default empty item‘s text.

The image below illustrates the empty item with the default text.

empty item

The code sample below demonstrates how to enable the empty item.

<dxe:ComboBoxEdit>
    <dxe:ComboBoxEdit.StyleSettings>
        <dxe:RadioComboBoxStyleSettings ShowEmptyItem="True"/>
    </dxe:ComboBoxEdit.StyleSettings>
    <dxe:ComboBoxEditItem Content="Item1"/>
    <dxe:ComboBoxEditItem Content="Item2"/>
    <dxe:ComboBoxEditItem Content="Item3"/>
</dxe:ComboBoxEdit>
See Also