Problem in getAllEditRows() listgrid

Anyone pls help me solve this.

I m using the smart client version 8.0

Browser: Internet Explorer 7.0

Using a listGrid for which data is loaded throuth json. After loading data, i edit few rows and click save button.

My concern is that, when i save button, it want to save only the rows which are edited. for this i m using the listGrid.getAllEditRows().

But this is not returning edit rows. Instead it shows undefined.

Thanks in advance.

My Code is below:

isc.ListGrid.create({
ID: “pricingDetails”,
fields: [
{ name: ‘ID’, title: ‘ID’, showIf: ‘false’, canEdit: ‘false’ },
{ name: ‘Quota’, title: ‘Quota’, showIf: ‘false’, canEdit: ‘false’ },
{ name: ‘Contract’, title: ‘Contract’, showIf: ‘false’, canEdit: ‘false’ },
{ name: ‘SplitContract’, title: ‘SplitContract’, showIf: ‘false’, canEdit: ‘false’ },
{ name: ‘ProductID’, title: ‘ProductID’, showIf: ‘false’, canEdit: ‘false’ },
{ name: ‘ContractNo’, title: ‘Salesc Contract No’, width: 120, canEdit: ‘false’ },
{ name: ‘Product’, title: ‘Product’, width: 100, type: “text”, canEdit: ‘false’ },
{ name: ‘Qty’, title: ‘Quantity’, width: 100, type: “text” },
{ name: ‘LME’, title: ‘LME(USD/MT)’, width: 100, type: “float”,
validators: [{ type: “integerRange”, min: 1}]
},
{ name: ‘Premium’, title: ‘Premium(USD/MT)’, width: 100, type: “float”, validators: [{ type: “integerRange”, min: 1}] },
{ name: ‘HedgingCost’, title: ‘Hedging Cost(USD/MT)’, width: 100, type: “float”, validators: [{ type: “integerRange”}] },
{ name: ‘BankingCost’, title: ‘Hedging Cost(USD/MT)’, width: 100, type: “float”, validators: [{ type: “integerRange”}] },
{ name: ‘CommHandlingCost’, title: ‘Comm. Handling Cost(USD/MT)’, width: 100, type: “float”, validators: [{ type: “integerRange”}] },
{ name: ‘UnitPrice’, title: ‘Unit Price(USD/MT)’, width: 100, type: “summary”,
recordSummaryFunction: “sum”, align: “right”
}
],
canEdit: true,
modalEditing: true,
alternateRecordStyles: true,
canDragRecordsOut: true,
hoverWidth: 200,
hoverHeight: 20,
autoSaveEdit : false,
selectionType: “single”
});

Data for the grid is loaded as below (from json returned through RPC Call):
function setEPPDetailsData(eppDetails) {
eval("var eppDetailsData = " + eppDetails);
pricingDetails.setData(eppDetailsData);
}

Save button click:
isc.IButton.create({
ID: “saveButton”,
title: “Save”,
left: 200,
top: 16,
width: 80,
click: function () {
var varProvDate = expProvPricingForm.getValue(‘provDate’);
var varContractID = expProvPricingForm.getValue(‘contract’);
if (varContractID == null) {
isc.showMessage(“Please Select Contract”);
return;
}
if (varProvDate == null) {
isc.showMessage(“Please Select Provisional Date”);
return;
}
var vPDate = new Date(varProvDate);

        var gridData = pricingDetails.getEditedRecord(); //here gridData shows undefined

}
});

autoSaveEdits:false

Thanks for the quick reply.

That works for me.