The Validator validates a disabled Upload
The Upload is validated although it is disabled.
Disabled elements should not be validated.
### Bug report
The Validator shows a duplicated error message when validating a CheckBox.
### Reproduction of the problem
1) Create a standard HTML form with a checkbox, which has two inputs - a visible one with value="true" and a hidden one with value="false" (this is the generated HTML markup when using <input asp-for="@Model.IsChecked" /> or Telerik UI for ASP.NET Core CheckBox component).
2) Initialize a Kendo UI Validator on the form and create a custom rule for the checkbox editor.
3) Submit the form and review the duplicated error message in the validation summary. The Validator validates both hidden and visible inputs.
A Dojo sample for reproduction: https://dojo.telerik.com/YoLKDPZQ
### Expected/desired behavior
A single error message must be displayed when the checkbox is not checked and the form is submitted.
### Environment
* **Kendo UI version: 2025.2.702
* **jQuery version: 3.7.1
* **Browser: [all]
The default email regex of the Validator passes invalid email.
Workaround: https://dojo.telerik.com/uguresac/7
The validation passes.
The validation should fail.
In an Scheduler edit popup that has a required MultiSelect, the validation message disappears after blurring the widget.
Regression introduced with 2020 R2
The validation message disappears
The validation message should remain
Hi,
I seem to have unearthed a bug in the Kendo spreadsheet control. When the spreadsheet has only 1 row and there is column validation somewhere on the sheet, if I then edit a cell (without validation), 8 rows are created.
See the following Dojo
Kendo UI Snippet | Kendo UI Dojo (telerik.com)
Steps to reproduce.
1. Run the Dojo
2. Edit the UnitPrice cell to, say 20
3. Save changes
4. Observe in the browser console (F12) 8 rows created.
Expected results are 0 rows created and 1 updated
Thanks
Ian
Not so recently HTML 5 has added minLength and maxLength attributes (including form based validation) to their spec for input fields of the above mentioned types. Kendo UI Validator does not seem to use them during validation. It is, of course, possible to add a custom validation rule, however, it would be much preferred to use the built-in mechanism in modern browsers to do so.
Standard reference
HTML 5 standard maxLength and minLength
Demonstration code which does not fire a validation error:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Kendo UI Snippet</title>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.914/styles/kendo.default-v2.min.css"/>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.3.914/js/kendo.all.min.js"></script>
</head>
<body>
<form class="myValidator">
<p><input type="text" name="age" minlength="3"></p>
<button id="validate" class="k-button k-primary" type="button">Validate</button>
</form>
<script>
$('#validate').click(function(){
var validator = $(".myValidator").kendoValidator({
messages:{
minlength:"Number must be greater than 3"
}
}).data("kendoValidator");
validator.validate();
})
</script>
</body>
</html>
If we make an input readonly it doesn't get validated and wee need it to be validated on a readonly datepicker.
In kend.all.min.js we have
v=":input:not(:button,[type=submit],[type=reset],[disabled])"
and if i modify it by adding readonly like below
v=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])"
We need to make that code configurable because the workarounds concerining this problem it's buggy.
Allow customization of the Validation Tooltip position.
For example, positioning the Tooltip based on the cell, on the input.