Use of static data source in custom binding DataGird example for Blazor Server

Your example of using a DataAdaptor uses a static data source to bridge between the razor page and the DataAdaptor class. This works fine for Blazor client but not in Blazor server where the static variable is shared amongst all circuits and causies one user's search to be overwritten by another.

https://blazor.syncfusion.com/documentation/datagrid/custom-binding/

Do you have a way of using a DataAdaptor in Blazor server environment?



1 Reply

RS Renjith Singh Rajendran Syncfusion Team July 16, 2021 12:50 PM UTC

Hi Michael, 

Greetings from Syncfusion support. 

Based on this scenario, we suggest you to inject service into CustomAdaptor class and fetch your data inside the Read method itself instead of using static List. Please refer the below documentation for more details, 

Please get back to us if you need further assistance. 

Regards, 
Renjith R 


Loader.
Up arrow icon