This question is locked. New answers and comments are not allowed.
Hello Kendo,
With your latest version 2013 Q1 released, we are now using RequireJS + Kendo UI in our project. From your tutorial, I define a custom js moduel like the following
defind(['jquery', 'underscore', 'kendo.grid'], function($, _) {
});
However, an error described as 'kendo_module is not defined' was encounted every time I require this module. When I switched the dependency to kendo.grid.min, everything is going to be OK.
SO, how could I load the kendo ui source code using RequireJS, but without explicitly requiring kendo.data. I realized that if I require this file before kendo.grid, it makes sense too.
Plz help. Or am I doing something wrong?
Thanks,
Wenhao
With your latest version 2013 Q1 released, we are now using RequireJS + Kendo UI in our project. From your tutorial, I define a custom js moduel like the following
defind(['jquery', 'underscore', 'kendo.grid'], function($, _) {
});
However, an error described as 'kendo_module is not defined' was encounted every time I require this module. When I switched the dependency to kendo.grid.min, everything is going to be OK.
SO, how could I load the kendo ui source code using RequireJS, but without explicitly requiring kendo.data. I realized that if I require this file before kendo.grid, it makes sense too.
Plz help. Or am I doing something wrong?
Thanks,
Wenhao
6 Answers, 1 is accepted
0
Hi,
Atanas Korchev
the Telerik team
Currently only the minified files support RequireJS. More info about using Kendo with RequireJS can be found in our documentation.
All the best,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

Louis
Top achievements
Rank 1
answered on 22 Mar 2013, 06:46 PM
Hello Kendo,
Just so you know, a dependency is mislabeled in kendo.dataviz.sparkline.min.js. The required file is kendo.dataviz.chart.min, but the dependency is spelled kendo.chart.min. RequireJS throws an error.
The dependency chain is broken further in kendo.dataviz.chart.min, where files are referred to as kendo.dataviz-svg.min and kendo.dataviz-core.min, and in kendo.dataviz.svg.min where the dependency is referred to as kendo.dataviz-core.min (should be kendo.dataviz.svg.min and kendo.dataviz.core.min).
Just so you know, a dependency is mislabeled in kendo.dataviz.sparkline.min.js. The required file is kendo.dataviz.chart.min, but the dependency is spelled kendo.chart.min. RequireJS throws an error.
The dependency chain is broken further in kendo.dataviz.chart.min, where files are referred to as kendo.dataviz-svg.min and kendo.dataviz-core.min, and in kendo.dataviz.svg.min where the dependency is referred to as kendo.dataviz-core.min (should be kendo.dataviz.svg.min and kendo.dataviz.core.min).
0
Hi,
Tsvetomir Tsonev
the Telerik team
Thank you for reporting this problem. We have corrected the dependency and the fix will be included in all future builds.
As a token of gratitude for your involvement your Telerik points have been updated.
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

oleg
Top achievements
Rank 1
answered on 11 Apr 2013, 01:24 PM
Im using kendo.web.js and requirejs.
I need not minimized version of kendo.web to be able to debug kendo's source code when developing.
How can I achive this if you said that only minimized file is working with requirejs?
I need not minimized version of kendo.web to be able to debug kendo's source code when developing.
How can I achive this if you said that only minimized file is working with requirejs?
0
Hello Oleg,
Atanas Korchev
the Telerik team
You cannot achieve it for the time being because only minified Kendo scripts support RequireJS.
All the best,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

Francesc
Top achievements
Rank 1
answered on 24 May 2013, 03:31 PM
Hello,
How can i get the kendo instance by using AMD dependencies (RequireJS) ?
Example that what we would like to achive:
requirejs(["jquery", "k/kendo.core.min"], function ($, k) {
var router = new k.Router();
});
Why your "kendo_module" function is not opensource ?
Thanks,
Francesc BAETA
How can i get the kendo instance by using AMD dependencies (RequireJS) ?
Example that what we would like to achive:
requirejs(["jquery", "k/kendo.core.min"], function ($, k) {
var router = new k.Router();
});
Why your "kendo_module" function is not opensource ?
Thanks,
Francesc BAETA