Restrict Auto correction of Raddatepicker

1 Answer 80 Views
DatePicker
Ramesh
Top achievements
Rank 1
Ramesh asked on 10 Feb 2022, 06:17 AM | edited on 10 Feb 2022, 02:00 PM

Hi Team,

How can we restrict the auto correction of Raddatepicker input.?

Say example, if I enter 25/10/2020 in raddatepicker (if format  is MM/DD/YYYY) it is automatically changes to 10/25/2020 when I click outside!.

I don't want to rearrange the date. Instead it should warn depends on the date format.

Also if we enter date as "00" and month as "00" , it shows an invalid date!. Instead can we make it as a warning as we enter invalid date in RaddatePicker ?

Please suggest your thoughts or comments.

 

Note : we are using a bit old dll version shown below

RadControls for ASP.NET AJAX Q1 2013


Regards,

Ramesh.

Ramesh
Top achievements
Rank 1
commented on 10 Feb 2022, 01:54 PM | edited

All suggestions and workarounds are welcome.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 14 Feb 2022, 09:35 AM

Hi Ramesh,

You can disable the AutoCorrect of the DateInput by setting EnableSmartParsing="false". When it is set to "false" (default value is "true") the automatic parsing/correction of the date/time entered is disabled.

Please note that this property is available since Q2 2015 SP1 release and you will need to upgrade to use it:
http://docs.telerik.com/devtools/aspnet-ajax/controls/dateinput/features/parsing-dates#date-grouping-and-structure

The upgrade to a newer version after R1 2020 or a later one is also a must because of the CVE-2019-18935 vulnerability in the earlier versions including Q1 2013. You can find more information about the vulnerability at Allows JavaScriptSerializer Deserialization and Blue Mockingbird Vulnerability Picks up Steam—Telerik Guidance.

Best Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ramesh
Top achievements
Rank 1
commented on 15 Feb 2022, 09:33 AM

Thanks Rumen. Suggestion is very valuable to me. 

Regards,

Ramesh.

Tags
DatePicker
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or