Hi Mr Andrey,
Thanks for contacting Syncfusion support.
Query 1 : Grid's spinner is spinning indefinitely if EjsDataManager returns no records.
We have tried to reproduce the reported problem by creating a sample in our latest version 220.127.116.11-beta to bind an empty data for the Grid. But we are not able to reproduce the problem. Grid renders fine by showing “No Records to display” and no spinner is shown in Grid. We are attaching the sample which we have tried form our side. Please download the sample form the link below,
If you are still facing difficulties, we need more details to further proceed on this. Kindly share with us the following details for better assistance.
- Share the sample which you have tried from your side.
- Share the Syncfusion Blazor version details.
- Share the details of the script error or exception if you have faced any.
- Share with us the exact scenario or proper replication procedure.
- Share the video demo showing the problem you are facing.
Query 2 : How can I refresh grid's data when using EjsDataManager WebApi adapter ?
We suggest you to call the “Refresh()” method of Grid. Calling the “Refresh” method will send a post to the server. And so, will fetch the data from server and bind the newly fetched data to Grid. Please refer the code below, for an example purpose we have called the Refresh method inside a button click handler.
<EjsButton OnClick="RefreshGrid">Grid Refresh</EjsButton>
<EjsGrid @ref="GridInstance" TValue="Order" AllowPaging="true" Height="300" ...>
<EjsDataManager @ref="DataInstance" Url="api/Default" Adaptor="Adaptors.WebApiAdaptor"></EjsDataManager>
public void RefreshGrid(MouseEventArgs args)
Please get back to us if you need further assistance.
Renjith Singh Rajendran.