I created a gridSummay for "Quantity"column in listgrid and also I set to listgrid's "autoSaveEdits" property to false . After that I added to new record but newly "Quantity" column value not added to grid summary. I also tested this situation smartclient Grid Summaries example ("https://www.smartclient.com/smartclient/showcase/?id=summaryGrid") but nothing changes.
When set autoSaveEdits property to true, everthings ok. But I need to set "autoSaveEdits" property to false for bulk operations.

When set autoSaveEdits property to true, everthings ok. But I need to set "autoSaveEdits" property to false for bulk operations.
Code:
isc.ListGrid.create({
ID: "companyList",
width:650, height:520,
alternateRecordStyles:true,
autoFetchData:true,
[B]autoSaveEdits: false, [/B]
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,[B] showGridSummary:true[/B]},
{name:"unitPrice", showGroupSummary:false, showGridSummary:false,
formatCellValue:function (value) {
if (isc.isA.Number(value)) {
return value.toCurrencyString("$");
}
return value;
}
},
{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;
}
}
]
});
/[B]/*****************Our Code *******************************
isc.IButton.create({
ID:"newRecord",
title: "New",
click: function () {
companyList.startEditingNew();
}
});
isc.VLayout.create({
ID: "layout",
padding: 5,
members: [companyList, newRecord]
});
//*****************Our Code *******************************[/B]
Comment