Need More Info
Last Updated: 20 Oct 2022 08:23 by ADMIN
Adan
Created on: 13 Oct 2022 09:55
Category: UI for ASP.NET AJAX
Type: Bug Report
0
RadMenuItem onHover errors at Telerik.Web.UI.WebResources after enable EnableHandlerEncryption on Web.config

Hello,

I'm facing JavaScript issues after enabling "Telerik.ScriptManager.EnableHandlerEncryption" on Web.config,

I've just followed Encrypt Telerik WebResource Querystring in order to hide the Telerik version.

After this the RadMenu breaks when i do a PostBack action (by pressing a button), the console outputs the same error when hovering a RadMenuItem and the submenus has stop being displayed.

The console error:

Uncaught TypeError: Cannot read properties of null (reading 'apply')
  at Type.callBaseMethod (Telerik.Web.UI.WebRe...=:6:7353)
  at c.RadMenuItem._createChildControls (Telerik.Web.UI.WebRe...=:5300:49)
  at c.RadMenuItem._ensureChildControls (Telerik.Web.UI.WebRe...=:2770:72)
  at c.RadMenuItem._getChildren (Telerik.Web.UI.WebRe...=:2768:32)
  at c.RadMenuItem.get_items (Telerik.Web.UI.WebRe...=:3552:36)
  at c.RadMenuItem._onItemMouseOver (Telerik.Web.UI.WebRe...=:4159:8)
  at Telerik.Web.UI.EventMap._onDomEvent (Telerik.Web.UI.WebRe...=:3289:6)
  at HTMLDivElement.<anonymous> (Telerik.Web.UI.WebRe...=:6:307)
  at HTMLDivElement.b (Telerik.Web.UI.WebRe...=:623:53)

I've tested this error with version 2020.2.617.45 and 2022.3.913 but the same problem.

Looking in the forum i've found this post with a related issue also a reply has a reference to a private feedback and this last one seems to be the same or almost the same problem, so i've tried to follow the workaround on "global.asax" file and "Page_Load" on the master page without luck.

The steps i've follow:

  • Enabling "Telerik.ScriptManager.EnableHandlerEncryption".
  • Site seems working correctly.
  • I press a RadButton inside a RadAjaxPane.
  • Response from server is OK.
  • Then i hover the cursor on RadMenuItems on RadMenu.
  • Console starts to show the related error explaining above.
  • RadMenu stops to present the submenus completely.

I'd like to have another way to workaround this in order to make RadMenu work properly again and keep Telerik version hidden.

Regards

1 comment
ADMIN
Doncho
Posted on: 20 Oct 2022 08:23

Hi Adan,

Indeed the issue seems to be the same as the one already reported in our portal:

Could you please clarify if you have tried all the workarounds suggested by the author of the bug report:

  • Replace the RadButton in the RadAjaxPanel with a native asp:Button
  • Disable the handler URL encryption
    <add key="Telerik.ScriptManager.EnableHandlerEncryption" value="false"/>
    and hide the Telerik version at runtime with
    System.Web.HttpContext.Current.Items["_!TelerikVersionStampRendered"] = true;

If yes, and the issue is still occurring, we will need a reproduction of the issue in order to investigate it further. It would be helpful if you share a basic sample replicating the problem. You can also use the one provided in the feedback item as a basis for further modification.

Kind regards,
Doncho
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.