I am migrating from Telerik NumericTextBox to Kendo and have a question about the change event.
The page has multiple NumericTextBoxes in the grid rows so the change event needs the ID of the control to know which grid row is being changed.
The commented lines were from the Telerik version
function SpinnerQtyChange(e) {
var target = this.element[0];
var id = target.id.replace("QtySpinner_", "");
var quantityJ = $(target).closest("td"); // Up to my <td> (Quantity)
QtyChange(id, quantityJ, this.value(), e.oldValue);
//var id = e.target.id.replace("QtySpinner_", "");
//var quantityJ = $(e.target).parent().parent(); // Up to my <td> (Quantity)
//QtyChange(id, quantityJ, e.newValue, e.oldValue);
}
The problem is the e.oldValue - where can I find it?
Thanks,
Gary Davis
The page has multiple NumericTextBoxes in the grid rows so the change event needs the ID of the control to know which grid row is being changed.
The commented lines were from the Telerik version
function SpinnerQtyChange(e) {
var target = this.element[0];
var id = target.id.replace("QtySpinner_", "");
var quantityJ = $(target).closest("td"); // Up to my <td> (Quantity)
QtyChange(id, quantityJ, this.value(), e.oldValue);
//var id = e.target.id.replace("QtySpinner_", "");
//var quantityJ = $(e.target).parent().parent(); // Up to my <td> (Quantity)
//QtyChange(id, quantityJ, e.newValue, e.oldValue);
}
The problem is the e.oldValue - where can I find it?
Thanks,
Gary Davis