Kendo UI + requireJS

8 posts, 0 answers
  1. Oskar
    Oskar avatar
    12 posts
    Member since:
    Sep 2011

    Posted 11 Oct 2011 Link to this post

    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!
  2. RainerAtSpirit
    RainerAtSpirit avatar
    4 posts
    Member since:
    Jul 2009

    Posted 14 Oct 2011 Link to this post

    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
  3. UI for ASP.NET AJAX banner
  4. Oskar
    Oskar avatar
    12 posts
    Member since:
    Sep 2011

    Posted 03 Nov 2011 Link to this post

    Hi,

    update, please.

    Cheers,
    Oskar.
  5. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 03 Nov 2011 Link to this post

    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!
  6. RainerAtSpirit
    RainerAtSpirit avatar
    4 posts
    Member since:
    Jul 2009

    Posted 04 Nov 2011 Link to this post

    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
  7. Jacob
    Jacob avatar
    23 posts
    Member since:
    Oct 2011

    Posted 09 Dec 2011 Link to this post

    +1 for supporting the AMD format
  8. Will
    Will avatar
    1 posts
    Member since:
    Nov 2011

    Posted 25 Jan 2012 Link to this post

    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 
  9. Basem
    Basem avatar
    27 posts
    Member since:
    Dec 2010

    Posted 07 Oct 2012 Link to this post

    +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.
Back to Top
UI for ASP.NET AJAX banner