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

Javascript infinite loop reload

1 Answer 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mattias Hermansson
Top achievements
Rank 1
Mattias Hermansson asked on 28 Aug 2013, 11:34 AM
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?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 30 Aug 2013, 10:22 AM
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!
Tags
Window
Asked by
Mattias Hermansson
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or