Skip to content

Commit

Permalink
PreserveRowSelectionOnPageing renamed to PreserveRowSelectionOnPaging
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Oct 22, 2024
1 parent a304d46 commit f417b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Radzen.Blazor/RadzenDropDownDataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ protected override async System.Threading.Tasks.Task OpenPopup(string key = "Arr
/// </summary>
/// <value>Row selection preservation on pageing.</value>
[Parameter]
public bool PreserveRowSelectionOnPageing { get; set; } = false;
public bool PreserveRowSelectionOnPaging { get; set; } = false;

/// <summary>
/// Gets or sets the page numbers count.
Expand Down Expand Up @@ -525,7 +525,7 @@ async Task OnLoadData(LoadDataArgs args)
await LoadData.InvokeAsync(new Radzen.LoadDataArgs() { Skip = skip, Top = args.Top, OrderBy = args.OrderBy, Filter = searchText });
}

if(PreserveRowSelectionOnPageing && selectedIndex != -1)
if(PreserveRowSelectionOnPaging && selectedIndex != -1)
{
var items = (LoadData.HasDelegate ? Data != null ? Data : Enumerable.Empty<object>() : (pagedData != null ? pagedData : Enumerable.Empty<object>())).OfType<object>().ToList();
selectedIndex = Math.Clamp(selectedIndex, 0, items.Count - 1);
Expand Down

0 comments on commit f417b9c

Please sign in to comment.