Disable the Edit Mode Specifically in Blazor In-place Editor Component

28 Jan 20221 minute to read

The edit mode of the In-place Editor can be disabled by setting the Disabled property value to true. In the following example, when you check or uncheck the checkbox, the In-place Editor component will disable or enable the edit mode respectively.

@using Syncfusion.Blazor.InPlaceEditor
@using Syncfusion.Blazor.Buttons
@using Syncfusion.Blazor.Inputs

<table class="table-section">
        <td> Disabled: </td>
            <SfCheckBox @bind-Checked="Checked" Label="Disable" ></SfCheckBox>
        <td class="sample-td"> Enter your name: </td>
        <td class="sample-td">
            <SfInPlaceEditor @bind-Value="@TextValue" TValue="string" Disabled="Checked">
                    <SfTextBox @bind-Value="@TextValue" Placeholder="Enter some text"></SfTextBox>

    .table-section {
        margin: 0 auto;

    tr td:first-child {
        text-align: right;
        padding-right: 20px;

    .sample-td {
        padding-top: 10px;
        min-width: 230px;
        height: 100px;

@code {
    public string TextValue { get; set; } = "Andrew";
    public bool Checked { get; set; } = true;