I have a Kendo grid that has 15 editable columns and I am currently using inline editing. I also have a comments column that is only required if one of the other columns has changed its value. How do I manage that with custom validation?
In the example below, I am able to click into the row to begin editing. However I only require the Comments field to be required if ColA,ColB,ColC are edited.I can see that the row has been changed by tying into the hasChanges of the dataSource on the grid, but how do I force the required attribute to be applied to the Comments field?
ColA ColB ColC Comment
0 0 0
var grid = $('#grid').data('kendoGrid');
var selectedRow = grid.dataItem('tr.k-grid-edit-row');
if (grid.dataSource.hasChanges()) {
debugger;
alert("there are changes");
}