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

Window missing onLoaded event

3 Answers 172 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bjarke
Top achievements
Rank 1
Bjarke asked on 10 May 2012, 09:16 PM
I need an onLoaded event for the Kendo UI window widget. While the content loads asynchronously I want to display something like "Loading..." or a spinner.

3 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 11 May 2012, 01:38 PM
Hi Bjarke,

Such an event is not available in the Kendo UI Window, but you could achieve the same by initializing the window content with a loading message. For example: 

$("<div>loading...</div>")
  .appendTo("#example")
  .kendoWindow({content:"../../content/web/window/ajax/ajaxContent1.html"});

I hope this helps.
 
Greetings,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Franz
Top achievements
Rank 1
answered on 16 May 2012, 02:22 PM
Hi Iliana,

I also want a preloader for my kendo Window and tried your suggestion. Unfortunately it had no effect - the "Loading" message isn't visible. Can you provide an alternative solution or a jsfiddle that demonstrates the functionality?

thanks,

Franz
0
Iliana Dyankova
Telerik team
answered on 17 May 2012, 06:39 PM
Hello Franz,

In order to display a preloader while the document is loading, you could append a div which contains the loading image to the window. For convenience I created a simple project, which illustrates such approach in action - please find it attached.
 
Greetings,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Bjarke
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Franz
Top achievements
Rank 1
Share this question
or