Use custom data to populate an AutoComplete

I would like to call some code to populate the AutoComplete control.  I would like to get the data from another service in my application, like a data layer. 

I have found the DataManager, however, is this really required? or is there a simpler option?

If it is required then I understand i have to make a custom DataManager and override the Read method and return the data.  However, I would need to initialize the DataManager with references to my data layer services and this doesn't seem possible. 

What is the appropriate way to meet this scenario?



2 Replies

CJ Chris Johnson May 10, 2022 07:17 PM UTC

I found the answer in the docs for the DataGrid.  You can use DI in the custom adapter.

Custom Binding in Blazor DataGrid Component | Syncfusion



SP Sureshkumar P Syncfusion Team May 11, 2022 02:34 PM UTC

Chris,


Thanks for your update.


Regards,

Sureshkumar P


Loader.
Up arrow icon