Getting javascript error:
(anonymous) | @ | ||
(anonymous) | @ |
You are welcome, Jeffrey! Let me know if you have any other questions! I will be glad to assist you.
Regards,
Rumen
Progress Telerik
Hi Jeff,
I'm following up to confirm that we've successfully reproduced the Uncaught TypeError: Cannot read properties of null (reading 'className') issue and have provided a workaround for it.
Regards,
Rumen
Progress Telerik
Hi Jeff,
Thank you for the follow-up!
I attempted to replicate the new error but was unable to reproduce it. Could you please confirm whether the issue occurs in the live demos that run the latest version?
: https://demos.telerik.com/aspnet-ajax/dateinput/overview/defaultcs.aspx?
To help us investigate further, could you please provide the following details:
<telerik:RadScriptManager
ID="RadScriptManager1"
runat="server"
CdnSettings-TelerikCdn="Enabled">
</telerik:RadScriptManager>
Regards,
Rumen
Progress Telerik
I updated to 2025.2.520.462 and the regular expression problem disappeared, but it now throws this error in the console. Seems to still have a problem related to the RadDateInput control.
VM222 Telerik.Web.UI.WebResource.axd:53 Uncaught TypeError: Cannot read properties of null (reading 'className')
at Telerik.Web.UI.RadDateInput.updateCssClass (VM222 Telerik.Web.UI.WebResource.axd:53:12134)
at Telerik.Web.UI.RadDateInput.set_enabled (VM222 Telerik.Web.UI.WebResource.axd:53:17965)
at Sys$Component$_setProperties (VM222 Telerik.Web.UI.WebResource.axd:6:54456)
at Sys.Component.create (VM222 Telerik.Web.UI.WebResource.axd:6:54944)
at Array.<anonymous> (ModifyJob.aspx?JobID=94846&v_JobListDir=Asc&v_JobListPageSize=15&s_Address=1200&s_Builder=0&s_Office=0:582:5)
at VM222 Telerik.Web.UI.WebResource.axd:6:51370
at Sys._Application._raiseInit (VM222 Telerik.Web.UI.WebResource.axd:6:72276)
at Sys._Application.initialize (VM222 Telerik.Web.UI.WebResource.axd:6:69772)
at b (VM222 Telerik.Web.UI.WebResource.axd:6:71512)
at HTMLDocument.a (VM222 Telerik.Web.UI.WebResource.axd:6:71786)
Any thoughts on how to get around this?
Jeff Taylor
Hi Jeff,
Thank you for reaching out.
The 2025 Q2 release of Telerik UI for ASP.NET AJAX is scheduled for Wednesday, May 21, and it will include the fix for the Date Picker issue introduced in version 2025.1.416.
In the meantime, to avoid the vulnerability in earlier versions, we recommend applying one of the mitigation options 2 or 3 outlined in our official Knowledge Base article:
These options provide a level of protection and will secure your application until the Q2 update is available.
Regards,
Rumen
Progress Telerik
We have this problem too after updating to 416 avoid the vulnerability in previous versions.
We tried your workaround using the CDN and it did not seem to work for us. When will the actual fix for Q2 be released so we can have both working Date Pickers and the hotfix for the vulnerability?
Jeff Taylor
Hi Patrice,
Thank you for reporting this issue.
As a small note of gratitude for reporting the issue, I have updated your Telerik points.
Regards,
Rumen
Progress Telerik
Hi Vasko,
Thanks for the reply, but the regular expression is in Telerik's code, not mine. Have you checked RadDateInputScript.js?
That's where it lies.
I'm getting this error since I updated to latest version of Telerik. No code change from my end.
Please advise.
Patrice
Hi Patrice ,
The error you're encountering, Invalid regular expression: Range out of order in character class
, indicates that there is a problem with the syntax of the regular expression used in your JavaScript code. This typically occurs when character ranges within the regular expression are not correctly ordered or overlap incorrectly.
To resolve this issue, here are a few steps you can take:
Review the Regular Expression: Examine the character class within the regular expression to ensure that all ranges are correctly ordered. For example, ensure that the start and end characters of each range are properly defined and in the correct order.
Simplify the Expression: If the regular expression is complex or includes many ranges, try breaking it down into simpler parts or removing unnecessary ranges. This can help isolate the problematic part of the expression.
Use Character Classes Carefully: Ensure that any special characters or Unicode ranges are correctly specified and do not overlap. If you're using Unicode ranges, ensure they are valid and correctly formatted.
Validate the Regular Expression: Utilize tools like regex testers available online to validate and test your regular expression independently. This can help identify syntax issues or misconfigurations.
If these suggestions do not help you out, please share additional details, such as the code used for the DateInput and steps to reproduce the error.
Regards,
Vasko
Progress Telerik