Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telerik DatePicker in IE 10 is not working

In my ASP.NET site, I am using Telerik controls to bind date and time picker, and it works good in all browsers except IE 10, then I ran script debugger it says js error :

SCRIPT5007: Unable to get property 'documentElement' of undefined or null reference Telerik.Web.UI.WebResource.axd, line 166 character 2

Anyone knows, how to fix this problem ?

Thanks a lot!

like image 879
ihorko Avatar asked Dec 24 '12 14:12

ihorko


1 Answers

I added to my web.config (system.webServer) lines:

<httpProtocol>
  <customHeaders>
    <clear />
    <add name="X-UA-Compatible" value="IE=9" />
  </customHeaders>
</httpProtocol>   

and it fixed the problem.

like image 74
ihorko Avatar answered Sep 19 '22 15:09

ihorko