Is there a way to call validate () on a cell in a kendo grid without using the editCell () method ?
The method for calling the validator recommended by the Telerik team is as follows:
$("myGrid").data("kendoGrid").editable.validatable.validate()
however, an editable object is not available if there is no open cell (for example, there is no focused input in the grid), so I have to activate the cells one by one in order to call validate ()
I would like to trigger a check on each grid cell and run some logic (e.g. addClass ())
I succeeded if I jquery the loop through all the td elements in the grid and call validate (), like this:
$(".k-grid-content td").each(function () {
var cell = $(this);
grid.editCell(cell);
if (!grid.editable.validatable.validate()) {
cell.addClass("cell-invalid");
};
grid.closeCell(cell);
});
.
, , - .
: , ?
PS: (incell)