This question is locked. New answers and comments are not allowed.
Cranialstrain
Top achievements
Rank 1
Cranialstrain
asked on 11 Mar 2010, 10:26 AM
Great news on the first major release of Telerik Extension for MVC, congratulations to all the team involved!
However we've had a slight problem after upgrading and am having trouble tracking it down. Upon page load Firebug reports the following Javascript error and we notice the filter button/menus are no longer working:
| types is undefined |
| types = types.split(" "); |
Using the uncompressed version of jQuery 1.4.2 it would seem it relates to the following lines in jQuery include:
| 1610 // Handle multiple events separated by a space |
| 1611 // jQuery(...).bind("mouseover mouseout", fn); |
| 1612 types = types.split(" "); |
Is anyone else experiencing similar problems? Any indication of where to start with this would be much appreciated :)
Ian
PS. Apologies if the title is misleading, this was the JS error from the minified version of jQuery.
12 Answers, 1 is accepted
0
Cranialstrain
Top achievements
Rank 1
answered on 11 Mar 2010, 10:53 AM
Just done some tracking and it seems to relate to the second call from this stack:
Stack: add / (?)() / live() / grid() / (?)() / each() / each() / tGrid() / (?)() / ready() / DOMContentLoaded()
Function: jQuery.event.add()
Parameters: elem='div#grid .t-widget', types='undefined', handler='liveHandler(event)', data='undefined'
The preceding call from the same stack is for "live.click.'t-pager&'t-state-disabled".
Hopefully that might help?
ian
0
Hi Cranialstrain,
I am not sure how to reproduce this problem. Can you see this JavaScript error in our online examples?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I am not sure how to reproduce this problem. Can you see this JavaScript error in our online examples?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Cranialstrain
Top achievements
Rank 1
answered on 11 Mar 2010, 11:28 AM
Hi Atanas,
I'm afraid I can't see it on your on-line examples or when running the examples locally on my machine; I can only think it's something legacy left over from our first implementation, or perhaps our DOM structure.
I will try stripping the page back to the bare minimum and see if I can find anything else out. If I knew where in the Telerik JS the 'event add' call was being made from it would help me greatly?
Ian
0
Hello Cranialstrain,
After some investigation I discovered that this may happen if you are using jquery-1.4.2 with the futures release (aseembly version prior to 2010.1.309) or if you are using jquery earlier than 1.4.2 with the current official release (2010.1.309).
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
After some investigation I discovered that this may happen if you are using jquery-1.4.2 with the futures release (aseembly version prior to 2010.1.309) or if you are using jquery earlier than 1.4.2 with the current official release (2010.1.309).
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Cranialstrain
Top achievements
Rank 1
answered on 11 Mar 2010, 01:28 PM
Hi Atanas,
Thanks for looking into this so promptly. I've been doing some investigation of my own and came to a similar conclusion, although I can not get 2010.1.309.135 working, even with jQuery 1.4.2. Trying to use our previous version 2009.3.1320.135 with jQuery 1.4.2 also results in errors.
So for the moment we're at an impasse as we can't upgrade to either jQuery 1.4.2 or the official 2010.1.309.135 release. Is there a later (nightly build?) release we can download and try? If so, do you think this will solve our problem? We obviously have concerns that our jQuery upgrade path may be so tightly coupled with Telerik MVC as well :(
Ian
0
Hi Cranialstrain,
I am sending you a sample project using the current official bits. Does it work for you?
There are no newer versions which you can try.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I am sending you a sample project using the current official bits. Does it work for you?
There are no newer versions which you can try.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Cranialstrain
Top achievements
Rank 1
answered on 11 Mar 2010, 03:53 PM
Atanas,
I'm not sure what (if anything) you've changed in the Telerik JS files in the "179227_mvcapplication3" archive but I now have it all working. Looking at my SVN changelog I can see nothing different from what I did initially. The only thing that occurs to me is that I added the non-minified versions of the Telerik JS files from the 'source' directory opposed to the minified versions in /Scripts/2010.1.308. Could this be it?
If you wish I'll try adding the source versions again and see if this breaks it, just to be sure.
Thanks, Ian.
0
Hello Cranialstrain,
Well I am not sure. Normally both JavaScript files (minified and original) should be the same.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Well I am not sure. Normally both JavaScript files (minified and original) should be the same.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Erik
Top achievements
Rank 1
answered on 22 Apr 2010, 09:54 AM
I just wanted to tell you that I have the exact same problem. I'm investigating it right now.. Cranialstrain, your solution was to copy the non minified scripts from the source folder for telerik?
0
Erik
Top achievements
Rank 1
answered on 22 Apr 2010, 12:22 PM
In telerik.grid.min.js:
the code that causes the "problem":
| b(".t-pager .t-state-disabled",g).live("click",a.preventDefault) |
0
Erik
Top achievements
Rank 1
answered on 22 Apr 2010, 12:38 PM
| $('.t-pager .t-state-disabled', element) |
| .live('click', $t.preventDefault); |
not mimified, Ln 16 in telerik.grid.js
0
Erik
Top achievements
Rank 1
answered on 22 Apr 2010, 12:53 PM
We used jquery 1.4.1 in our project, it now works when I updated to 1.4.2!