Skip to main content
All docs
V24.2

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

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

C#
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