Hello.
I just updated to the latest version of Kendo UI for ASP.NET MVC (Q3 2012).
I noticed that some text boxes with both "required" and "readonly" attributes are not being validated anymore.
Here's what I have:
@{
var materialHtmlAttributes = new Dictionary<string, object>();
materialHtmlAttributes.Add("class", "k-textbox");
materialHtmlAttributes.Add("readonly", "readonly");
materialHtmlAttributes.Add("data-bind", "value: item.Material.Description");
materialHtmlAttributes.Add("validationMessage", "The Material field is required.");
materialHtmlAttributes.Add("required", "required");
}
@Html.TextBox("materialInputText", null, materialHtmlAttributes)
With the previous version of Kendo UI, this worked fine and the field was validated correctly, even being read-only. Now, this does not work anymore, the field is no longer validated. If I remove the read-only attribute, then it works.
It is important that the field remains read-only, because the value is set according to a selection made by the user in a list.
Is there a reason for this to not work anymore? Do I have to make some adjustments?
Thank you.
I just updated to the latest version of Kendo UI for ASP.NET MVC (Q3 2012).
I noticed that some text boxes with both "required" and "readonly" attributes are not being validated anymore.
Here's what I have:
@{
var materialHtmlAttributes = new Dictionary<string, object>();
materialHtmlAttributes.Add("class", "k-textbox");
materialHtmlAttributes.Add("readonly", "readonly");
materialHtmlAttributes.Add("data-bind", "value: item.Material.Description");
materialHtmlAttributes.Add("validationMessage", "The Material field is required.");
materialHtmlAttributes.Add("required", "required");
}
@Html.TextBox("materialInputText", null, materialHtmlAttributes)
With the previous version of Kendo UI, this worked fine and the field was validated correctly, even being read-only. Now, this does not work anymore, the field is no longer validated. If I remove the read-only attribute, then it works.
It is important that the field remains read-only, because the value is set according to a selection made by the user in a list.
Is there a reason for this to not work anymore? Do I have to make some adjustments?
Thank you.