Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Mimeo.DynamicUI.Blazor/Forms/ODataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public async Task Reload()
throw new InvalidOperationException("gridRef has not yet been bound");
}

// Clear the cached query so LoadData doesn't skip the request when the query is unchanged
previousQuery = null;
await gridRef.Reload();
}

Expand Down Expand Up @@ -323,8 +325,7 @@ private async Task OpenEditDialogAsync(ViewModel? model = null)

if (gridRef != null)
{
previousQuery = null;
await gridRef.Reload();
await Reload();
}
}
}
Expand Down Expand Up @@ -370,7 +371,7 @@ private async Task OpenCopyDialogAsync(ViewModel listModel)

if (gridRef != null)
{
await gridRef.Reload();
await Reload();
}
}
}
Expand All @@ -395,7 +396,7 @@ private async Task OpenDeleteDialogAsync(ViewModel listModel)

if (gridRef != null)
{
await gridRef.Reload();
await Reload();
}
}

Expand Down Expand Up @@ -432,7 +433,7 @@ private async Task OnImportComplete()
{
if (gridRef != null)
{
await gridRef.Reload();
await Reload();
}
}

Expand Down
Loading