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

DxCheckBox<T>.DisableDefaultRender Property

Specifies whether to hide the default check mark.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public bool DisableDefaultRender { get; set; }

#Property Value

Type Description
Boolean

true to hide the default check mark; false to draw the default check mark.

#Remarks

When you render custom checkbox content, set the DisableDefaultRender property to true to hide the default check mark (or toggle switch).

Razor
<DxCheckBox @bind-Checked="@Value" AllowIndeterminateStateByClick="true" DisableDefaultRender="true">
   // Add child content here...         
</DxCheckBox>

@code{
    bool? Value { get; set; } = true;
    // ...
}

CheckBox Custom Content

Run Demo: CheckBox - Customize Layout

See Also