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

Strange Kendo UI Mobile and RequireJS-Issue

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 26 Apr 2014, 07:47 AM
Hi Telerik-Team

I have a very strange issue:
According to your documentation, it's not possible to use the kendo.mobile.min directly with requireJS, which kind of makes sense (and I don't really care because including full featured libs with TypeScript + AMD is a pain anyway).

So what I do is simply load the file normally through the script-tag.
I then can initialize the App from within my modules, use the data- paramters to define behaviours, etc..
Everything works like a charm.

My current view features a lot of widgets, like buttons and scrollview which is kind of my "proove".

But here is the strange thing: when I use requireJS, Touch seams to be the only thing which is not working:
No matter if I declare them with the data-attribute, or through $(element).kendoTouch.

Now, according to your documentation, the "namespace" of the Touch-Widget is kendo.ui.Touch.
That object exists. And I can initialize my touch-behaviour with a new instance of it and that works without any problem.

As soon as I remove requireJS, I can use the touch-widget normally again.
I'm really wondering what could break the Touch-Widget, and as far as I can tell, only the Touch-Widget...

Thanks!

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 29 Apr 2014, 02:29 PM
Hi Richard,

First, the docs are a bit dated -- it's now possible, and supported, to load the bundles with RequireJS.  I will remove that section from the docs.

I have no idea what's broken in your setup.  Could you paste the HTML, as rendered in the browser, so I can check if the loading of scripts is correct.  Even better if possible, please send a small test case that reproduces the issue.

Also, are there any errors in the browser's console?

Regards,
Mihai
Telerik
 
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
Richard
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or