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

Application Loading Panel Doesn't work

1 Answer 101 Views
Application
This is a migrated thread and some comments may be shown as answers.
Andrew Paulson
Top achievements
Rank 2
Andrew Paulson asked on 14 Dec 2012, 10:04 PM
the Demo page, when I've copied it to my own project and referenced the same files (Js and CSS) the page throws an error, 

what's shown in the HTML view is not the same as what's running on the page. 

The Error i get is.  kendoMobileApplication is not defined I've tried several different ways to figure out what the issue is so I can start using the loading panels properly. but the solution iludes me. 

but when I look at the code of the page itself I see that the kendoMobileApplication is referenced as a new kendo.mobile.application though when I try to reproduce what appears to be the proper way, it doesn't work. I get 
Cannot call method 'showLoading' of undefined

when my app is calling "app.showLoading();"
and my app is defined as 
app = new kendo.mobile.Application(document.body);

so things are a little confusing, I thought i should be able to take the code shown in the demos and just use them in my projects, change the references to script and css files and have them work. but I could be wrong. 

Thanks for your help in advance,

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 17 Dec 2012, 09:25 AM
Hello Andrew,

I think that you might have stumbled upon a specific quirk regarding the application - calling showLoading before document ready tirggers the error you describe. 

The workaround you should employ is to call the showLoading method in the document.ready event handler - please see this small demo.

Greetings,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Application
Asked by
Andrew Paulson
Top achievements
Rank 2
Answers by
Petyo
Telerik team
Share this question
or