Hi,
We are seeing a discrepancy between grid summary and group summary formatting. Is it possible to make the group summary formatting the same as the grid summary formatting?
To see the difference, apply the code below to this example:
http://www.smartclient.com/docs/8.2/a/system/reference/SmartClient_Explorer.html#summaryGrid
Then look at the Unit Price column and see the Grid Summary is blank while the Group Summary shows NA. We'd prefer to show blank in both cases.
We are seeing a discrepancy between grid summary and group summary formatting. Is it possible to make the group summary formatting the same as the grid summary formatting?
To see the difference, apply the code below to this example:
http://www.smartclient.com/docs/8.2/a/system/reference/SmartClient_Explorer.html#summaryGrid
Then look at the Unit Price column and see the Grid Summary is blank while the Group Summary shows NA. We'd prefer to show blank in both cases.
Code:
isc.ListGrid.create({ ID: "companyList", width:600, height:520, alternateRecordStyles:true, autoFetchData:true, dataSource:orderItemLocalDS, showAllRecords:true, groupByField:"category", groupStartOpen:"all", canEdit:true, editEvent:"click", showGridSummary:true, showGroupSummary:true, fields:[ {name:"orderID", includeInRecordSummary:false, summaryFunction:"count"}, {name:"itemDescription"}, {name:"category", showGridSummary:true, getGridSummary:function (records, summaryField) { var seenCategories = {}; for (var i = 0; i < records.length; i++) { seenCategories[records[i].category] = true; } var totalCategories = isc.getKeys(seenCategories).length; return totalCategories + " Categories"; } }, {name:"shipDate", showGroupSummary:true, showGridSummary:false, summaryFunction:"max"}, {name:"quantity", showGroupSummary:false, showGridSummary:false}, {name:"unitPrice", showGroupSummary:true, showGridSummary:true, formatCellValue:function (value) { if (isc.isA.Number(value)) { return value.toCurrencyString("$"); } return "NA"; }, summaryFunction:"return null;" }, {name:"Total", type:"summary", recordSummaryFunction:"multiplier", summaryFunction:"sum", showGridSummary:true, showGroupSummary:true, align:"right", formatCellValue:function (value) { if (isc.isA.Number(value)) { return value.toCurrencyString("$"); } return value; } } ] })
Comment