Preset Search Key when using a Custom DataAdaptor

Hi there - I'm passing a search query to a page that loads a DataGrid. I'm trying to use given query value in a custom data adaptor. I tried using the DataGrid.Load event and calling Grid.Search(query), but that results in (2) calls to the database. 

How can I preset the search key on a DataGrid that uses a custom data adaptor and avoid duplicate calls.

Thank you, really like your components :)

2 Replies 1 reply marked as answer

GO Gordon March 31, 2021 06:43 AM UTC

I figured it out:

<GridSearchSettings Operator=Syncfusion.Blazor.Operator.Equal Fields="@(new string[] { "Number" })" Key="@SearchTerm" IgnoreCase="true" />


VN Vignesh Natarajan Syncfusion Team April 1, 2021 03:26 AM UTC

Hi Gordon,  

Thanks for contacting Syncfusion support.  

We are glad to hear that you have achieved your requirement on your own. Please find our UG documentation on initial searching for your reference. 


Kindly get back to us if you have further queries.  

Regards, 
Vignesh Natarajan 


Marked as answer
Loader.
Up arrow icon