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

Using Require.js

3 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 2
Jesse asked on 29 Jan 2013, 07:59 PM
I'm having issues trying to get require up and running with Kendo mobile. My setup looks like so

in my default.html

<script type="text/javascript" data-main="Scripts/main.js" src="Scripts/libs/require.js"></script>


in my main.js

(function(){
    requirejs.config(
        {
            baseUrl: 'Scripts/libs',
            paths: {
                plugins: '../app'
            }
        }
    );
    // Start main app logic
        requirejs(['jquery-1.9.0.min', 'kendo.mobile.min'],
    function($,kendo){        
            var app = new kendo.mobile.Application(document.body,
                {
                    platform: 'ios'
                });        
    });
})();


have tried different ways to load these scripts and I still keep getting Uncaught TypeError: Cannot read property 'mobile' of undefined

Edit: One thing I find odd is that I can go to the console on Chrome and drill down to kendo.mobile.Application just fine, as you can see in the page.png file I uploaded.

    


3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Jan 2013, 07:23 AM
Hi Jesse,

 RequireJS is currently not supported by Kendo UI. This is one of the features we will ship with the upcoming release. A beta version is expected at the end of February.

Kind regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Earl Gray
Top achievements
Rank 1
answered on 07 Feb 2013, 08:07 PM
Dear Atanas Korchev,
Can you please let us know what is the release date of this feature?
I also appreciate if you can inform us whether it is going to be available on any of internal builds.

Thank you.
0
Atanas Korchev
Telerik team
answered on 08 Feb 2013, 07:35 AM
Hi guys,

 The next Kendo UI release is expected Mid March. A beta version (including RequireJS support) would be released earlier - at the end of February. RequireJS support will not be released in an internal build though.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Jesse
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Earl Gray
Top achievements
Rank 1
Share this question
or