View Full Version : editable grid beforeEdit changing the value in the cell

28 Feb 2011, 12:53 PM
I am using an editable grid and when I click on a column I want to change the value in the box. I have a beforeEdit function that checks to see if the current value is zero. If it is, I want to set it to the balance owed. Stepping through the debugger, the code is executing as expected, however, the value is not displayed. How can I get the value to display?

onBeforeEdit : function(e) {
if (e.value === 0) {
var amountDue = e.record.get("amountDue")
e.value = amountDue;