How to properly persist Filter and Sort Order

Hi there. My colleague, Darren Swindells, asked for help on this a couple of days and you said just EnablePersistence on the control (he was referring to a Grid). I've done that and nothing still works. I've also discovered, through another search, that we may need to install the Blazored.SessionStorage NuGet package and call into the relevant method on Startup. So I've done that, no change. Every time I press refresh or move from and to a page, the filters and sort orders are lost.

Am I missing something? Basically, the Gantt definition looks as follows:

 <SfGantt @ref="GanttChart" TValue="GanttScheduledOrder" ID="ScheduledOrdersGanttChart" DataSource="@GanttCollection" DurationUnit="DurationUnit.Minute" ProjectStartDate=@PrjStartDate ProjectEndDate=@PrjEndDate DateFormat="dd MMM yyyy HH:mm" RowHeight="30" AllowFiltering="true" SelectedRowIndex="1" EnablePersistence="true">

and the only other detail I added was to stick 

services.AddBlazoredSessionStorage();

to the start of my ConfigureServices() method. What am I missing? I'm using both an up to date Chrome and MS Edge browser. Oh, I get the same wrong behaviour on the SFGrid control too.


Thanks


1 Reply

MS Monisha Sivanthilingam Syncfusion Team July 19, 2021 08:51 AM UTC

Hi Andy, 
 
Greetings from Syncfusion support. 
 
Currently, we do not have support for EnablePersistence in Gantt Chart. However, we have already logged a feature report for it. You can track its status from the below feedback link. 
 
 
As we have already lined up some major features, we could not implement this support immediately. We will implement this and include it in any of our upcoming releases. Please cast your vote on this feature. Based on the customer demand we will prioritize the features in our upcoming road map. 
 
Regards, 
Monisha. 


Loader.
Up arrow icon