Pending Review
Last Updated: 08 Aug 2019 05:48 by ADMIN
John
Created on: 05 Aug 2019 06:59
Category: Kendo UI for jQuery
Type: Feature Request
0
How can i validate a readonly control (datepicker) ?

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.

1 comment
ADMIN
Marin Bratanov
Posted on: 08 Aug 2019 05:48
Hello,

I am leaving this request open to see if there is community interest in it.

A major problem with allowing that is the user experience - if a read only or disabled input fails validation, the user won't be able to edit them in order to submit their data, which effectively locks them down. Thus, we can only assume that the application developer has provided valid value for such fields and/or that their server code knows about them and can handle them regardless of their values (if they get submitted, of course), or that they will not use an editor for showing information to the user.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.