RequireJS and Kendo UI Mobile App Init

4 posts, 0 answers
  1. Victor
    Victor avatar
    17 posts
    Member since:
    Jun 2011

    Posted 30 Jul 2013 Link to this post

    Are there any known issues with the Kendo Mobile App init event not firing when setup in a project using requirejs?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Jul 2013 Link to this post

    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.
  3. Victor
    Victor avatar
    17 posts
    Member since:
    Jun 2011

    Posted 30 Jul 2013 Link to this post

    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?
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 02 Aug 2013 Link to this post

    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.
Back to Top