Loading Animation in ASP.NET Core Tree Grid Component
21 Dec 20221 minute to read
The Tree Grid displays a loading indicator while the data is being fetched and bound to the tree grid during initial rendering, refreshing, and after performing any tree grid actions like sorting, filtering, and more.
The tree grid supports two indicator types, which can be enabled by setting the loadingIndicator.indicatorType
property to Spinner or Shimmer. The default value of the indicator type is Spinner.
In the following sample, the Shimmer indicator is displayed while the tree grid is loading and refreshing when using the remote data.
<ejs-treegrid id="TreeGrid" idMapping="TaskID" height="400" parentIdMapping="ParentItem" hasChildMapping="isParent" treeColumnIndex="1" allowPaging="true" allowSorting="true">
<e-treegrid-pagesettings pageCount="3"></e-treegrid-pagesettings>
<e-treegrid-loadingIndicator indicatorType="Shimmer"></e-treegrid-loadingIndicator>
<e-data-manager url="https://services.syncfusion.com/aspnet/production/api/SelfReferenceData" adaptor="WebApiAdaptor" crossDomain="true"></e-data-manager>
<e-treegrid-columns>
<e-treegrid-column field="TaskID" headerText="Task ID" textAlign="Right" width="120"></e-treegrid-column>
<e-treegrid-column field="TaskName" headerText="Task Name" width="240" textAlign="Left"></e-treegrid-column>
<e-treegrid-column field="StartDate" headerText=" Start Date" textAlign="Right"
format="yMd" type="date" width="140"></e-treegrid-column>
<e-treegrid-column field="Duration" headerText="Duration" textAlign="Right" width="130"></e-treegrid-column>
<e-treegrid-column field="Progress" headerText="Progress" width="130"></e-treegrid-column>
</e-treegrid-columns>
</ejs-treegrid>
public IActionResult LoadingAnimation()
{
return View();
}
You can refer to our
ASP.NET Core Tree Grid
feature tour page for its groundbreaking feature representations. You can also explore our ASP.NET Core Tree Grid exampleASP.NET Core Tree Grid example
to knows how to present and manipulate data.