Window Restore

3 posts, 1 answers
  1. Marc
    Marc avatar
    133 posts
    Member since:
    Sep 2016

    Posted 13 Dec 2016 Link to this post

    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. Answer
    Ianko
    Admin
    Ianko avatar
    1626 posts

    Posted 14 Dec 2016 Link to this post

    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.
  3. Marc
    Marc avatar
    133 posts
    Member since:
    Sep 2016

    Posted 15 Dec 2016 in reply to Ianko Link to this post

    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.

Back to Top