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

[Solved] Uncaught ReferenceError: prefx is not defined

3 Answers 173 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.
Bob Mills
Top achievements
Rank 2
Bob Mills asked on 03 May 2011, 09:35 PM
Grid SubmitChanges has Javascript Error in MVC Ext 2011.1.414 and 2011.1.502(Internal)

To fix in telerik.grid.editing.min.js Version 2011.1.414; replace "prefx" with "m".
To fix in telerik.grid.editing.min.js Version 2011.1.502; replace "prefx" with "o".

To fix in telerik.grid.editing.js Version 2011.1.414; replace "prefx" with "prefix".
To fix in telerik.grid.editing.js Version 2011.1.502; replace "prefx" with "prefix".

Thanks,
Jed Racine
jracine@dpsol.com

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 May 2011, 06:49 AM
Hello Bob Mills,

 We couldn't reproduce this problem in our tests. Could you please let us know how replicate this JavaScript error?

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
Bob Mills
Top achievements
Rank 2
answered on 04 May 2011, 03:13 PM
Atanas,

Allow me to be a bit more specific about the issue.  In both version 2011.1.414 and 2011.1.502 (downloaded from telerik's website) the minified and source version of the telerik.grid.editing.js file seem to have a small typographical error around line 473 (414 Version).

The flatten function has a parameter called "prefix" and this parameter is used in a ternary if statement within the function, but is misspelled as "prefx".  This causes the minifier to ignore the "prefx" variable and leave it intact as "prefx"

The quick fix is to make the change in the files, which is what my colleague has expressed in the first post.

However, we would like to bring it to your attention that we have experienced this problem in the most recent Telerik ASP.NET MVC downloads, including the internal build.

Thanks for your attention.
0
Rosen
Telerik team
answered on 05 May 2011, 08:31 AM
Hello Bob Mills,

Thank you for providing the additional details. We were able to address the described discrepancy and the fix will be included in the next internal build. Meanwhile, I have updated your telerik points.

All the best,
Rosen
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
Tags
Grid
Asked by
Bob Mills
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Bob Mills
Top achievements
Rank 2
Rosen
Telerik team
Share this question
or