And I pass it straight to the Grid dataSource. The only way it displays something is when I pass some prefetched data to the JSON, but for sure it doesn't fetch anything by itself and whenever I try to edit a field it complains regarding CORS.
Is there an example of working example for Firebase Firestore? I am afraid I will end up having to implement my own adaptor due the API particularities but I do not find mich information aside of the recomendation to implement a method on the subclass.
SKSujith Kumar Rajkumar Syncfusion Team October 30, 2020 09:21 AM UTC
Greetings from Syncfusion support.
We checked your query and for this requirement we suggest you to use custom binding approach to bind data in the Grid. With this you can bind data from API call by providing your own custom queries(as required by your API) and handle all the Grid actions with your API. The Grid’s custom binding approach is explained below,
For using custom binding, you need to bind the response data(Grid data) returned from your API as an object of result(JSON data source) and count(Total data count) properties and set it to the Grid’s dataSource property. On setting the data source in this format, the ‘dataStateChange’ event will be triggered with corresponding query for every Grid action performed like Paging, Sorting and Filtering.., and the ‘dataSourceChanged’ event will be triggered while performing CRUD action in Grid. So using this you can send the queries in your required format to your API, process and return the result and then assign the returned result to the Grid’s dataSource property as an object of result and count properties.
We have prepared a sample based on this for your reference. You can find it below,
Note: The ‘dataStateChange’ event will not be triggered on Grid initial render. So for this case you need to return the data in the above mentioned format on initialization and assign it to the Grid’s dataSource property.
Please get back to us if your require any further assistance.