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

Kendo UI + requireJS

7 Answers 537 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Oskar
Top achievements
Rank 1
Oskar asked on 11 Oct 2011, 11:14 AM
Hi folks!

Can you provide information at the very beginning ot the each file, about dependencies for this file? I want to use requireJS in my application and I need to change every single file with my script to work with requireJS. What I need is something simillar to jQuery UI library:

/* Depends:
 *  jquery.ui.core.js
 *  jquery.ui.widget.js
*/

Thanks in advance!

7 Answers, 1 is accepted

Sort by
0
RainerAtSpirit
Top achievements
Rank 1
answered on 14 Oct 2011, 10:29 PM
Plus one for require.js support, but please implement as modules and not as comments like jQueryUI does :).
Here's a quick example how that might look like:

Model/SPItem.js:
 
define(['backbone'], function(Backbone) {
    "use strict";
    var SPItem = Backbone.Model.extend({
        idAttribute : "ows_ID"
    });
    return SPItem;
});

someothermodule.js:
define( ['backbone', 'common', 'Model/SPItem'], function( Backbone, Common, SPItem ) {
    "use strict";
...


Rainer
0
Oskar
Top achievements
Rank 1
answered on 03 Nov 2011, 02:49 PM
Hi,

update, please.

Cheers,
Oskar.
0
Petyo
Telerik team
answered on 03 Nov 2011, 04:06 PM
Hi Oskar,

 Thanks for this suggestion. You can log this request in our uservoice feedback site

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RainerAtSpirit
Top achievements
Rank 1
answered on 04 Nov 2011, 11:10 PM
While this topic doesn't seem to get a lot of traction, please consider supporting the AMD module format.

jQuery 1.7 does it, underscore1.2.1 does it, backbone is on it's way so don't miss the train ;-)

Rainer
0
Jacob
Top achievements
Rank 1
answered on 09 Dec 2011, 09:42 AM
+1 for supporting the AMD format
0
Will
Top achievements
Rank 1
answered on 26 Jan 2012, 05:41 AM
Here's the link to the RequireJS request on Kendo UI's Feedback portal. Please vote for it there:
http://kendo.uservoice.com/forums/127393-kendo-ui-feedback/suggestions/2364424-kendo-requirejs 
0
Basem
Top achievements
Rank 1
answered on 07 Oct 2012, 03:16 PM
+1 for AMD support. For a current "workaround", I wrote a blog about using Kendo UI and RequireJS with a live sample on GitHub: http://goo.gl/zXsH9

Native AMD support would be much more elegant though.
Tags
Integration with other JS libraries
Asked by
Oskar
Top achievements
Rank 1
Answers by
RainerAtSpirit
Top achievements
Rank 1
Oskar
Top achievements
Rank 1
Petyo
Telerik team
Jacob
Top achievements
Rank 1
Will
Top achievements
Rank 1
Basem
Top achievements
Rank 1
Share this question
or