Back to Devexpress

DxCheckBox<T>.DisableDefaultRender Property

blazor-devexpress-dot-blazor-dot-dxcheckbox-1-76c2c07b.md

latest1.4 KB
Original Source

DxCheckBox<T>.DisableDefaultRender Property

Specifies whether to hide the default check mark.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public bool DisableDefaultRender { get; set; }

Property Value

TypeDescription
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;
    // ...
}

Run Demo: CheckBox - Customize Layout

See Also

DxCheckBox<T> Class

DxCheckBox<T> Members

DevExpress.Blazor Namespace