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

Referencing DataSource using RequireJS under Durandal

2 Answers 115 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 12 May 2013, 10:30 PM
Hello Support:

I'm trying to reference DataSource through RequireJS under Durandal, and I'm having issues.  As you may know (since Kendo UI is promoted as being compatible with Durandal on the Durandal website), Durandal uses AMD and accesses modules relative to a baseURL specified on a data-main attribute.

I know now that Kendo UI supports RequireJS, so that simply referencing "kendo.grid.min", for example, in a list of RequireJS dependencies injects the kendo.grid.

Two questions:
  1. How do I reference DataSource?  I assumed the pattern would be kendo.datasource.min, but it isn't;
  2. Is there a way to get to DataSource on the CDN?  I would prefer to shim to the CDN than adjust the baseURL to point to the root.
With respect to #2 above, the default baseURL for Durandal is ~/App/.  I don't want to go to ~/.

Ultimately, my goal is simply to inject a DataSource using RequireJS under Durandal.

Thank you.

Eric

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 13 May 2013, 07:19 AM
Hi Eric,

 The kendo.data.DataSource component is defined in the kendo.data.min.js file. That file is also available on the Kendo UI CDN.

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
Eric
Top achievements
Rank 1
answered on 13 May 2013, 08:58 AM
Hi Atanas,

Thank you!
Tags
Data Source
Asked by
Eric
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Eric
Top achievements
Rank 1
Share this question
or