0

I have a huge viewModel (3300 lines) so its probably pointless to paste all the code here and will paste depending on help I get in narrowing the area that could be causing this issue.

The viewModel was written by some other developer and serves as a reusable business function that is accessed by many modules of the application. I am doing a "change" in the model to conform to new functionalities. But I am facing this issue.

There are 3 grids in the viewModel. Each is displayed based on which of the 7 modules is calling this viewModel. Each of the grid is almost the same in every logic (no idea why made into three different - and have no time to find out why and merge them all). And this issue is occurring in only 1 of them. When a record is opened in the popup edit mode and cancel button is pressed, the browser goes in to not responding state for couple of seconds and then the error "too much recursion" is seen in the debugger.

I need to know what can be the root cause to this, what part of the code do I need to show here to find this issue.

1 Answer 1

0

I think this error is coming due to references of libraries, but I am not sure.

Anyway you can cross check your code with below link:

Reference Guide

It says:

Important: kendo.all.min.js is available in the Kendo UI Professional, Telerik UI for ASP.NET MVC, Telerik UI for JSP and Telerik UI for PHP bundles. The contents of kendo.aspnetmvc.min.js are not included in kendo.all.min.js - you need to include kendo.aspnetmvc.min.js in addition to kendo.all.min.js or use the custom download builder tool.

Then

Important: Only one of the combined JavaScript files can be included at a time, because they include the Kendo UI framework. If widgets from different Kendo UI suites will be used simultaneously, you should use kendo.all.min.js or build a custom script.

and last but not least

Registering duplicate scripts may cause Javascript errors and unexpected behavior.

Hope this will help you and solve your problem. Let me know if it doesn't work.

5
  • This seems promising, will see if this helps Jun 4, 2015 at 5:49
  • Ok used Chrome debugger, what I found it that this particular exception is repeatedly thrown on that page after cancelling the edit popup window: Failed to execute 'querySelectorAll' on 'Element':.................. Jun 4, 2015 at 6:05
  • Is that a kendo ui related bug? I assume you are trying to access element by wrong selector. Jun 4, 2015 at 6:31
  • found the problem. Some how the exception on cancel event of this grid stopped coming when databound of another grid got commented out :/ no idea how that one is related to this... since it is someone else's code I really need to drill down and see... thanks for the help Jun 4, 2015 at 7:14
  • Glad you found root cause Jun 4, 2015 at 8:00

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.