Javascript infinite loop reload

2 posts, 0 answers
  1. Mattias Hermansson
    Mattias Hermansson avatar
    24 posts
    Member since:
    May 2010

    Posted 28 Aug 2013 Link to this post

    Hello,

    I have a Kendo().Window() in my _Layout where i use the .LoadContentFrom("Method","Controller") But if the window can't get to the method due to not logged in, i get a infinite loop of script load at the login page since the KendoUiwindow is trying to access the method. Is there a way to set the timeout on the LoadContentFrom() or something?

  2. Petur Subev
    Admin
    Petur Subev avatar
    1677 posts
    Member since:
    Sep 2012

    Posted 30 Aug 2013 Link to this post

    Hello Anders,

    The loading of the content cannot be slowed down. However you can leave the Window with empty Content() and skip specifying LoadContentFrom configuration.
    Later on on the client side with JavaScript you can load the content with the client method called refresh.

    e.g.

    http://docs.kendoui.com/api/web/window#methods-refresh

    Kind Regards,
    Petur Subev
    Telerik

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Back to Top