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

RequireJS and Kendo UI Mobile App Init

3 Answers 52 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 30 Jul 2013, 01:57 PM
Are there any known issues with the Kendo Mobile App init event not firing when setup in a project using requirejs?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Jul 2013, 02:10 PM
Hi Victor,

There were some problems in an older version of Kendo UI, which have been resolved. You can clone and review the Kendo Mobile Music Store demo which works as expected and get its Kendo UI version in your app.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Victor
Top achievements
Rank 1
answered on 30 Jul 2013, 02:15 PM
I'm on the same version.  
It's weird everything else works perfectly, except that event never fires.

In /main.js I have this:
require(["jQuery", "app/app"], function($, application) {
    $(function() {
        
        app = application
        application.init();
        
       
    });
});

And then in /app/app.js I have this:
var init = function (e) {
        window.onerror = _onError;
        
        
        
        
       
        var kendoApp = new kendo.mobile.Application(document.body, {
            transition: "silde",
            initial: "tabstrip-home",
           
            init: function(){
                console.log("init")
                 
            }
            
            
        });...


But the init never fires.  Does this look ok to you?
0
Steve
Telerik team
answered on 02 Aug 2013, 08:21 AM
Hi Victor,

Indeed the event does not seem to fire with that version, but it has been fixed in the Kendo UI Q2 2013 release (v2013.2.716). You can update manually now or wait for next week when we would push Icenium v.1.7 which would come with updated Kendo UI template (still the update of existing apps should happen manually). For more information on the update, please refer to Update the Code Libraries in Your Project help article.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussion
Asked by
Victor
Top achievements
Rank 1
Answers by
Steve
Telerik team
Victor
Top achievements
Rank 1
Share this question
or