Search results

Configure data grid options on editing mode

You can access the data grid options such as sort, group, filter on editing mode using the beginDrillThrough event in the pivot grid. The event occurs in every value cell on double click and provides the data grid information before display the drill through grid pop-up.

<ejs-pivotview id="PivotGrid" height="300" beginDrillThrough="beginDrillThrough">
<e-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Normal"></e-editSettings>
    <e-datasource data="" expandAll="false" enableSorting="true">
            <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>

    function beginDrillThrough(args) {
        if (args.gridObj) {
            var gridObj = args.gridObj;
            gridObj.allowGrouping = true;
            gridObj.allowSorting = true;
            gridObj.allowFiltering = true;
            gridObj.filterSettings = { type: 'CheckBox' };
public ActionResult Index()
    var data = GetPivotData(); = data;
    return View();