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

Window Restore

2 Answers 32 Views
Window
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 13 Dec 2016, 11:27 AM

Hi, I have a custom function which opens 4 Kendo windows, inside a loop, one at a time. Each window has a Kendo spreadsheet component inside it already, populated with data. This crashes the browser and gives the following error:

 

angular.js:21778 RangeError: Maximum call stack size exceeded
    at s (kendo.all.js:103803)
    at s (kendo.all.js:103810)
    at s (kendo.all.js:103810)
    at s (kendo.all.js:103805)
    at s (kendo.all.js:103805)
    at s (kendo.all.js:103810)
    at s (kendo.all.js:103810)
    at s (kendo.all.js:103810)
    at s (kendo.all.js:103810)
    at s (kendo.all.js:103810)

 

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 15 Dec 2016, 05:58 AM

Hello Marc,

Most probably there the code hits a recursion and the code gets stuck due to the maximum call stack size. You can read more about that here:  http://stackoverflow.com/questions/6095530/maximum-call-stack-size-exceeded-error

I see that this error is thrown from angular.js. I assume the loop triggers some automatic rebinding, which calls again the method with the loop again and thus, causes an endless recursion. 

If you are stuck with this problem you can provide a simple dojo example of the problem in order to take a proper look at the implementation you have.

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Marc
Top achievements
Rank 1
answered on 15 Dec 2016, 07:42 AM

Hey,

Thanks! I'd already managed to fix this. Calling restore on a Window widget calls resize, which was causing the issues. I created a custom resize method and the problem went away! Thanks again.

Tags
Window
Asked by
Marc
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Marc
Top achievements
Rank 1
Share this question
or