Hi Viji,
Greetings from Syncfusion Support,
We understand your concern about displaying a loading
animation while waiting for API results. To achieve this, we recommend using
the showMaskRow method. This function allows you to present a loading mask or
animation during the data retrieval process within a Syncfusion Essential JS 2
(EJ2) grid component.
By implementing gridInstance.showMaskRow() within the
created event, you effectively instruct the grid to display the loading
animation right from the component's initial creation. This visual cue informs
users that data is currently being fetched, and they should patiently await the
data to load. Please refer the below code snippet and sample for more
information,
|
[index.js]
const created = () => {
gridInstance.showMaskRow();
};
|
Sample: https://stackblitz.com/edit/react-ufvyqn-hhbnvw?file=index.js
Please get back us if you need further assistance.
Regards,
Vikram S