Customizing loading indicator in Blazor Pivot Table Component

4 Aug 20212 minutes to read

You can customize the appearance of the loading indicator in the pivot table by using the SpinnerTemplate property. This property accepts an HTML string which can be used for appearance customization.

You can also disable the loading indicator by setting SpinnerTemplate to empty string.

@using Syncfusion.Blazor.PivotView

<SfPivotView TValue="ProductDetails" SpinnerTemplate="<i class='fa fa-cog fa-spin fa-3x fa-fw'></i>">
    <PivotViewDataSourceSettings DataSource="@data">
            <PivotViewColumn Name="Year"></PivotViewColumn>
            <PivotViewColumn Name="Quarter"></PivotViewColumn>
            <PivotViewRow Name="Country"></PivotViewRow>
            <PivotViewRow Name="Products"></PivotViewRow>
            <PivotViewValue Name="Sold" Caption="Units Sold"></PivotViewValue>
            <PivotViewValue Name="Amount" Caption="Sold Amount"></PivotViewValue>
            <PivotViewFormatSetting Name="Sold" Format="N"></PivotViewFormatSetting>
            <PivotViewFormatSetting Name="Amount" Format="C"></PivotViewFormatSetting>

    public List<ProductDetails> data { get; set; }
    protected override void OnInitialized()
    { = ProductDetails.GetProductData().ToList();
        //Bind the data source collection here. Refer "Assigning sample data to the pivot table" section in getting started for more details.

You can refer to our Blazor Pivot Table feature tour page for its groundbreaking feature representations. You can also explore our Blazor Pivot Table example to knows how to render and configure the pivot table.