ejs-grid lodaing animation

hi,

i am using the ejs-grid and while adding the  [loadingIndicator]='loadingIndicator' proparty everythig work just fine in the first 2seconds

i can see the skeleton and then i see the massege "no record to display" and i dont want to see that massege because

i am working with big data and it takes 3-4 seconds to be fatched i need the loadingIndicator to be longer


3 Replies 1 reply marked as answer

PS Pavithra Subramaniyam Syncfusion Team June 5, 2023 05:04 AM UTC

Hi Sir/Madam,


Since your data is loading asynchronously, you can show the loading animation by calling the “showMaskRow” method inside the created event and hide the loading indicator using the “hideSpinner” method. Please refer to the below code example for more information.


created(args) {

  setTimeout(() => this.grid.showMaskRow(), 10); // for shimmer

  // setTimeout(() => this.grid.showSpinner (), 10); // for Spinner

}

 

dataBound(args) {

  this.grid.hideSpinner();

}

 


https://ej2.syncfusion.com/documentation/api/grid/#showspinner

https://ej2.syncfusion.com/documentation/api/grid/#hidespinner


Please get back to us if you need further assistance on this.


Regards,

Pavithra S


Marked as answer

?? ????? ??? replied to Pavithra Subramaniyam June 6, 2023 08:59 AM UTC

working perfectly thank you very much



SG Suganya Gopinath Syncfusion Team June 7, 2023 11:18 AM UTC

We are glad that the provided solution helped to solve the issue. Please get back to us for further assistance. 

Regards,

Suganya Gopinath. 


Loader.
Up arrow icon