【原】Telerik radwindow 在IE10下偶尔报 unable to get value of the property 'toLowerCase' 的解决办法

  笔者正在开发的新项目在升级了最新版本的Telerik Control和决定支持IE10后,遇到了一个很棘手的问题,偶尔会在打开Radwindow的时候报JS error :unable to get value of the property 'toLowerCase': object is null or undefined.

在网上查了很多资料后,最后找到了比较好的解决方案。解决方法如下:

1.在报错的页面里找到RadWindowManager, 给其添加 OnClientBeforeShow="ClientBeforeShow" 客户端事件

2.在当前页面内添加相应的js function:

function ClientBeforeShow() {
  document.documentElement.focus();
}

就这一句话就可以

3.重新刷新页面看结果是不是正常了

相关的内容可以查看以下链接:

http://www.telerik.com/community/forums/aspnet-mvc/grid/edit-unable-to-get-value-of-the-property-tolowercase-object-is-null-or-undefined.aspx

http://www.telerik.com/community/forums/aspnet-ajax/window/radwindowmanager-in-a-radwindow-errors-in-ie10.aspx

http://www.telerik.com/community/forums/aspnet-ajax/window/random-error-in-radalert.aspx

原文地址:https://www.cnblogs.com/ytaozhao/p/3370481.html