Skip to main content
All docs
V24.2

DxEditorBase.EndUpdate() Method

Resumes component updates (when the BeginUpdate() method pauses updates) and re-renders the component.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public void EndUpdate()

Remarks

You can use BeginUpdate() and EndUpdate() methods to change values of the component parameters outside the component markup.

The following code snippet changes the ReadOnly parameter value.

<DxListBox Data="forecasts"
           TextFieldName="@nameof(WeatherForecast.Summary)"
           @ref="component"
           @bind-Values="values"/>
<br/>
<DxButton Text="MakeReadOnly" Click="@MakeReadOnly"></DxButton>

@code {
    private IListBox<WeatherForecast, WeatherForecast> component;

    private IEnumerable<WeatherForecast> forecasts;
    private IEnumerable<WeatherForecast> values;

    protected override async Task OnInitializedAsync() {
        forecasts = await ForecastService.GetForecastAsync(DateOnly.FromDateTime(DateTime.Now));
    }

    void MakeReadOnly() {
        component.BeginUpdate();
        component.ReadOnly = true;
        component.EndUpdate();
    }
}

Implements

See Also