Populate Grid Filter from QueryString Parameter

Is there a simple way to populate an SfGrid filter field (FilterBar) from a query string parameter upon navigation to the grid page?  If not simple, how would I go about doing this?  I also want the user to be able to modify or clear that filter.

Thanks,
Craig


1 Reply

PS Prathap Senthil Syncfusion Team February 10, 2025 03:33 PM UTC

Hi Craig Boucher,



Based on your query, we suggest using initial filtering to achieve your requirement. To apply an initial filter, you need to specify the filter criteria using the Predicate object in the Columns property of the GridFilterSettings component. We have already documented this topic. kindly refer to the documentation below for your reference.

Reference:

https://blazor.syncfusion.com/documentation/datagrid/filtering#initial-filter

Regards,
Prathap Senthil


Loader.
Up arrow icon