Is there a way to store the filter values , sort values by user last session save them and apply it to the grid at OnInitialization or any function .I have found the filter value in this property it is like query ,but dont know how to apply it to grid and reload it .Other than LoadData method as my Load method looks like this
Sort and Filter properties are strings that can be applied again using LoadData since the event is called on initial load of the DataGrid. Check our demo for reference: https://blazor.radzen.com/datagrid-loaddata
If you wish you can apply the same to filter and sort the collection before assigning to the DataGrid - you can use Dynamic LINQ similar to our demo.
Thanks @enchev ,Is it possible with normal collection like IEnumerable getMatrix without using dynamic Linq. If I update a row and save changes grid0.Reload() is able to retain the filter values but not reflecting the grid values so I have to use await Load() ; inorder to reflect those updated values in the grid but then the filter values are lost . Not sure what I am doing wrong exactly . Any help appreciated
<RadzenDataGrid @ref="analyticMatrixGrid" AllowFiltering="true" AllowPaging="true" PageSize="15" AllowSorting="true" RowRender="@RowRender" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" ExpandMode="DataGridExpandMode.Single" Data="@getAnalyticMatrix" TItem="AnalyticsMatrixDBObject" RowExpand="RowExpand" RowSelect="@OnRowSelect">
I'm afraid that it will be very hard. DataGrid provides sorts and filters as strings and Dynamic LINQ are actually bunch of extension methods that can be applied to any IEnumerable<>.