Search results

Customize empty value cells in ASP.NET Core Pivot Grid control

21 Oct 2021 / 1 minute to read

You can show the custom string in the empty value cells using the emptyCellsTextContent string type property in dataSource object of the pivot table. It can be configured through code behind during initial rendering.

Copied to clipboard
<ejs-pivotview id="PivotGrid" height="300">
    <e-datasource data="" expandAll="false" emptyCellsTextContent="*">
            <e-field name="Amount" format="C0" maximumSignificantDigits="10" minimumSignificantDigits="1" useGrouping="true"></e-field>
            <e-field name="Country"></e-field>
            <e-field name="Products"></e-field>
            <e-field name="Year" caption="Production Year"></e-field>
            <e-field name="Quarter"></e-field>
            <e-field name="Sold" caption="Units Sold"></e-field>
            <e-field name="Amount" caption="Sold Amount"></e-field>
Copied to clipboard
public ActionResult Index()
    var data = GetPivotData(); = data;
    return View();