Skip to main content
All docs
V24.1

DxDropDownListEditorBase<TData, TValue>.DropDownBodyCssClass Property

Specifies the name of the CSS class applied to the drop-down body in the editor.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
[Parameter]
public string DropDownBodyCssClass { get; set; }

Property Value

Type Default Description
String null

The CSS class name.

Remarks

To define the appearance of the drop-down body in the editor, assign a CSS class name to the DropDownBodyCssClass property.

The following code snippet specifies the background color to the ComboBox’s drop-down body.

<style>
    .my-style {
        background-color: darkorange;
    }
</style>

<DxComboBox Data="@Cities"
            @bind-Value="@Value"
            DropDownBodyCssClass="my-style" />

@code {
    IEnumerable<string> Cities = new List<string>() {
      "London",
      "Berlin",
      "Paris",
    };

    string Value { get; set; }
}

CSS Class for DropDown Body in ComboBox

For more information, see the following help topic: CSS Classes.

Implements

DevExpress.Blazor.IDropDownListEditorBase<TData, TValue>.DropDownBodyCssClass
See Also