We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4b177 commit 312e4eaCopy full SHA for 312e4ea
SimpleDataGrid/Pagination/PagedCollection.cs
@@ -378,6 +378,16 @@ private void ApplyFiltering(bool maintainPosition = false)
378
}
379
380
_filtered = query.ToList();
381
+
382
+ if (maintainPosition && _filtered.Any())
383
+ {
384
+ _currentPage = Math.Clamp(oldFirstItemIndex / _pageSize, 0, TotalPages - 1);
385
+ }
386
+ else
387
388
+ _currentPage = 0;
389
390
+ RaiseAllChanged();
391
392
393
private static string WildcardToRegex(string pattern)
0 commit comments