This is a migrated thread and some comments may be shown as answers.

[Solved] IE10 javascript error on numeric textbox keydown

2 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan Miser
Top achievements
Rank 1
Dan Miser asked on 09 Dec 2012, 08:36 PM
I'm using ASP.NET MVC 2012.3.1018. When running under debug from Windows 8/IE10 with VS2012, I hit the following error when pressing a key in a numeric textbox (at least with integer, currency and percent). I'm also using jquery 1.8.3 with jQuery(false) in the

ScriptRegistrar call:

 

0x800a138f - JavaScript runtime error: Unable to get property 'selection' of undefined or null reference

The callstack looks like this:
d [asset.axd] Line 2 Script
_keydown [asset.axd] Line 2 Script
proxy [jquery-1.8.3.js] Line 775 Script
dispatch [jquery-1.8.3.js] Line 3057 Script
eventHandle [jquery-1.8.3.js] Line 2675 Script

The line of code that is highlighted in the IDE is this:
var j=h.document.selection.createRange().text


Nothing is showing up in the console, and the key does end up getting processed eventually. Can anyone else confirm this? The closest example would be found here:
http://demos.telerik.com/aspnet-mvc/razor/Grid/EditingServerSide?mode=PopUp&type=Text&theme=vista

(Note: This happens with 2012.2.607 as well)

2 Answers, 1 is accepted

Sort by
0
Dani
Top achievements
Rank 2
answered on 22 Jan 2013, 01:13 AM
I am experiencing the same issue in IE10.  If I drop the browser mode back down to IE9 using the F12 developer tools, the error does not occur anymore.
0
Vladimir Iliev
Telerik team
answered on 24 Jan 2013, 02:34 PM
Hi Dan,

Please note that this issue is already fixed in our latest internal build, however the fix will be available with next Telerik Extensions for ASP.NET major release - Q1 2013. I would suggest to upgrade to KendoUI NumericTextBox or open a new support ticket where we can provide you with the latest internal build.

Kind Regards,
Vladimir Iliev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Dan Miser
Top achievements
Rank 1
Answers by
Dani
Top achievements
Rank 2
Vladimir Iliev
Telerik team
Share this question
or