Hi,
We have a grid with many columns with editor templates defined. We also have many custom validations based on the values of these columns.
eg. One column is a drop down with Status and another column is a datepicker with Date.
When we change the Date we want to check the value of the Status dropdown in the custom validation. How can we do this?
Currently when we change the status from StatusOne to StatusTwo, and then change the date field we need to be able to access the current value of StatusID for that row. But it shows the old value of StatusID (StatusOne) when we try to access it via the grid instead of StatusTwo.
var gd = $('#gds').data("kendoGrid");
var inputName = input.attr("id");
var rowIndex = input.context.rowIndex;
var StatusID = gd._data[rowIndex].StatusID;
Please let us know how to access the current value.
Thanks,
Sherly
We have a grid with many columns with editor templates defined. We also have many custom validations based on the values of these columns.
eg. One column is a drop down with Status and another column is a datepicker with Date.
When we change the Date we want to check the value of the Status dropdown in the custom validation. How can we do this?
Currently when we change the status from StatusOne to StatusTwo, and then change the date field we need to be able to access the current value of StatusID for that row. But it shows the old value of StatusID (StatusOne) when we try to access it via the grid instead of StatusTwo.
var gd = $('#gds').data("kendoGrid");
var inputName = input.attr("id");
var rowIndex = input.context.rowIndex;
var StatusID = gd._data[rowIndex].StatusID;
Please let us know how to access the current value.
Thanks,
Sherly