Reproduction
Expected result:
Actual result:
Fix:
Just add return before "validator.validate();" in method "validate".
Please document an example of editor as a function.
A simple example could be a password field: https://dojo.telerik.com/@GaloisGirl/ARIGOmUj
When submitting a form, its data is being sent multiple times to the backend.
Check the example on ticket 1468553.
Once submitted, the form's data is sent multiple times to the backend
Form's data should be sent to the controller only once
TypeScript definition missing for kendoForm
Open the typescript/kendo.all.d.ts file and search for kendoForm
kendoForm should be defined.
Enhancement
Form in horizontal orientation does not align the items correctly in the grid layout
Reproduction of the problem
Dojo: https://dojo.telerik.com/oJutUjUH
Current behavior
3rd item with colSpan of 2 does not take the whole available space
Expected/desired behavior
3rd item shall align according to previous items
Environment
Kendo UI version: [all]
jQuery version: [all]
Browser: [all]
Create a new instance of a Kendo form with an item where the validation's required property is set to true. For example:
<!DOCTYPE html>
<html>
<head>
<title>Example Form</title>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.2.616/styles/kendo.default-v2.min.css" />
</head>
<body>
<form id="example"></form>
<script src="https://kendo.cdn.telerik.com/2021.2.616/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.2.616/js/kendo.all.min.js"></script>
<script>
$(document).ready(function () {
var validationSuccess = $("#validation-success");
$("#example").kendoForm({
formData: {
FirstName: ''
},
layout: 'grid',
grid: {
cols: 2,
gutter: 16
},
items: [
{
field: 'FirstName',
label: 'First Name',
validation: {
required: true
}
}
]
});
});
</script>
</body>
</html>
The feature request is to send the label value to the validator rather than the field value.
I understand that the required property can take an object, such as:
required: { message: 'First Name is required' }