I am calling the below function on a textfield change listener - no matter what I do - the store is not getting marked as dirty?
function setProcedureCodeInfo(code, description, price, mnemonic) {
//alert(code + "\r\n" + description + "\r\n" + price + "\r\n" + mnemonic);
storeCharge.data.items[intRowIndex].data["CPT_HCPCS_Code"] = code;
var rec = gridCharge.getStore().getAt(intRowIndex); // Get the Record
rec.set("CPT_HCPCS_Code", code);
rec.commit();
rec.data["CPT_HCPCS_Code"] = code; // updates record, but not the view
rec.commit(); // updates the view
storeCharge.data.items[intRowIndex].data["Description"] = "CDM: </br>Ovrd: " + description + "</br>CPT: ";
var rec = gridCharge.getStore().getAt(intRowIndex); // Get the Record
rec.set("Description", "CDM: </br>Ovrd: " + description + "</br>CPT: ");
rec.commit();
rec.data["Description"] = "CDM: </br>Ovrd: " + description + "</br>CPT: "; // updates record, but not the view
rec.commit(); // updates the view
storeCharge.data.items[intRowIndex].data["Charge"] = price;
var rec = gridCharge.getStore().getAt(intRowIndex); // Get the Record
rec.set("Charge", price);
rec.commit();
rec.data["Charge"] = price; // updates record, but not the view
rec.commit(); // updates the view
storeCharge.data.items[intRowIndex].data["Mnemonic"] = mnemonic;
var rec = gridCharge.getStore().getAt(intRowIndex); // Get the Record
rec.set("Mnemonic", mnemonic);
rec.commit();
rec.data["Mnemonic"] = mnemonic; // updates record, but not the view
rec.commit(); // updates the view
rec.dirty = true;
//storeCharge
storeCharge.dirty = true;
alert(storeCharge.isDirty());
}