-
-
Notifications
You must be signed in to change notification settings - Fork 93
-
I can't seem to find a way of accessing programmatically the Count() or indeed the List of items when you apply a filter to a grid.
I would like to have a grid filtered, then apply an action across that list of filtered items. Is there any way of walking the items in a grid programmatically after the original source list of items has been filtered?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I achieved this by cloning the GridDataProviderRequest and adjusting the paging to then get a full listing of records.
var newRequest = new GridDataProviderRequest<TypeInstance>()
{
CancellationToken = _request.CancellationToken,
PageNumber = 1,
PageSize = 10000,
Filters = _request.Filters,
Sorting = _request.Sorting,
};
GridDataProviderResult<TypeInstance> filteredSet = newRequest.ApplyTo(typeInstances);
foreach (var aChiller in filteredSet.Data)
{
...
}
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment