Validation is achieved
Kendo Grid validation is achieved like this, similarly how should achieve this in kendo spread sheet
schema: {
model: {
fields: {
ProductName: { type: "string" },
UnitPrice: { type: "number", validation : {
required: true,
unitvalidation: function (input) {
var value = 0;
var value_found = false;
if (typeof input[0] !== 'undefined') {
if (input.val() !== "") {
value_found = true;
value = input.val();
}
if (value_found === true) {
if (value < 0 || value > 3) {
alert('please enter value between 0 and 3');
}
}
}
return true;
}
}
}
}
}
},
Kendo Grid validation is achieved like this, similarly how should achieve this in kendo spread sheet
schema: {
model: {
fields: {
ProductName: { type: "string" },
UnitPrice: { type: "number", validation : {
required: true,
unitvalidation: function (input) {
var value = 0;
var value_found = false;
if (typeof input[0] !== 'undefined') {
if (input.val() !== "") {
value_found = true;
value = input.val();
}
if (value_found === true) {
if (value < 0 || value > 3) {
alert('please enter value between 0 and 3');
}
}
}
return true;
}
}
}
}
}
},