Filtering and bookmarks

We are a small company with just under 500 employees and evaluating your product for our future web development. One of the things we have is a employee search page which has 5 inputs;

First Name, Last Name, Division, Location, and Department

You can select any of these and then do a search to get a list of employees.

I've built a POC using your controls which works great but I saw that Datagrid has the ability to do filtering and since we have such a small number of employees though maybe we could just pull all records back and use the Datagrid filtering feature. But this brought up some questions.

Can you bookmark the results you have filtered? 

For example, if my location is Raleigh and in my search I filter Location based on this I could bookmark this and then use this bookmark to only see employees in Raleigh. I don't need to open the employee directory, set location to raleigh and then search.

If I added the datagrid filtering, can I do the same?

Filter based on location and bookmark this and then open this bookmark to this filtered data?



1 Reply

RR Rajapandi Ravi Syncfusion Team April 22, 2022 03:32 PM UTC

Hi Joseph,


Greetings from Syncfusion support


We have checked your query and we suspect that you like to store the filtered result and like to restore the filtered result for your later usage, you can store your Grid settings by using our inbuilt methods getPersistData() of Grid. Please refer the below documentation for more information.


API: https://ej2.syncfusion.com/documentation/api/grid/#getpersistdata


Using the Grid’s getPersistData method you can get the current grid settings which will be returned as displayed in the below image,



You can then store these settings(along with the required columns properties) in window local storage or in your service and on load, you can fetch the stored data and restore the entire saved settings along with the column properties(or the required properties alone).


If the above does not meet your requirement , So please share the below details that will be helpful for us to provide better solution.


1)        Please share your exact requirement with detailed description.


2)        Share your requirement about that what you have mentioning about bookmark.


3)        Explain your requirement scenario with pictorial representation.


Regards,

Rajapandi R


Loader.
Up arrow icon