CustomAdaptor Search Value

Hi .

I am trying to use autocomplete with customadaptor.

I have a service that gets the List of objects but i need to get the value entered in the autocomplete.

I tried to use the example explained in the documentation. 

public override async object Read(DataManagerRequest dm, string key = null)

        {

 var locationService = new LocationService();

            var predictions = await locationService.GetPredictions(enteredvalue)

            IEnumerable<Prediction> DataSource = predictions;

            if (dm.Search != null && dm.Search.Count > 0)

            {

                DataSource = DataOperations.PerformSearching(DataSource, dm.Search); //Search

            }

}


how can i reach the entered value here? from dm.search is giving a list of search filters but i need the text written inside the autocomplete box.

thanks o


1 Reply 1 reply marked as answer

BC Berly Christopher Syncfusion Team October 12, 2021 05:41 PM UTC

Hi Emrah, 

Greetings from Syncfusion support. 

We can get the entered text in the AutoComplete from where query of the DataManagerRequest instance as mentioned in the below screenshot. 

 

 

For your reference, we have prepared the sample and attached it below. 


Still facing issues, please share any issue reproducing sample that will help us to check and proceed further from our end. 

Regards, 
Berly B.C 


Marked as answer
Loader.
Up arrow icon