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

Cannot read property 'get' of undefined

11 Answers 277 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
vikas
Top achievements
Rank 1
vikas asked on 09 Jan 2014, 05:38 AM
I am trying to build a simple sample App inspired by the music store app. I am using  requirejs version 2.1.9 with kendo UI . But I am getting  "Uncaught TypeError: Cannot read property 'get' of undefined " error in kendo.mobile.min.js at line 12
I am running the app in simulator.

11 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Jan 2014, 12:17 PM
Hello Vikas,

The Kendo UI Mobile Music Store app that you used as base for your app is incompatible with newer Kendo UI versions and it uses too many bad practices, which is not what we would want to show in a sample and that is why it has been removed from our samples database. Most likely we would create a new "skeleton" app for users that would like to see integration with AMD js modules for subsequent versions of Icenium.

Sorry for the temporary inconvenience.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
vikas
Top achievements
Rank 1
answered on 09 Jan 2014, 05:16 PM
Thanks of information but it did not help me. How do I resolve the issue here and what is the best way of using RequireJs with Kendo Ui. Do have a sample app.
0
vikas
Top achievements
Rank 1
answered on 11 Jan 2014, 02:40 PM
I am evaluating Icenium with kendo UI but if this is the level of support that I will be getting then It seems I need to stop my evaluation here. Not just documentation is lacking but support also  is bad.
If I can not develop modular mobile app with Kendo UI then it is not the right tool for mobile development.
0
Kiril Nikolov
Telerik team
answered on 13 Jan 2014, 11:32 AM
Hi Vikas,

Could you please extract a runnable sample where this exact error is reproducible? Once we have the sample, we will be more than happy to take a look.

Regards,
Kiril Nikolov
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
vikas
Top achievements
Rank 1
answered on 15 Jan 2014, 04:18 AM
I extracted the project and it is a zip file but the forum does not allow me to attach a zip file. Where should I upload the file. Please let me know
0
Steve
Telerik team
answered on 15 Jan 2014, 08:31 AM
Hi Vikas,

Yes, the forums do not allow archives on purpose. You can upload the .zip file to a free file share site and provide the link here.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
vikas
Top achievements
Rank 1
answered on 16 Jan 2014, 04:07 AM
Please down the project from https://www.dropbox.com/s/52x3nkp7oi2jw0a/vCare_patient.zip

Thanks,
Vikas
0
vikas
Top achievements
Rank 1
answered on 17 Jan 2014, 08:26 PM
Can I get some sort of resolution to this issue...I spent half of my evaluation period waiting for resolution of this issue 
0
Petyo
Telerik team
answered on 20 Jan 2014, 11:50 AM
Hello vikas,

You receive the error in question because of incorrect ViewModel instantiation. 

var viewModel =  kendo.data.ObservableObject.extend({

This creates a class, which in turn can be instantiated with a new constructor. 

Replacing the following line with 

var viewModel =  kendo.observable({

resolved the problem. 

I would like to suggest that you look through the MVVM getting started section in the Kendo UI documentation for further details. 


Regards,
Petyo
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
vikas
Top achievements
Rank 1
answered on 22 Jan 2014, 03:07 AM
I posted my  issue on Jan 9th and it is Jan 22, still no resolution.
Does icenium support Kendo with requireJS.
Next step for me is to post my trial experience in a blog and tweet about it endlessly. Please break this silence
0
Steve
Telerik team
answered on 23 Jan 2014, 12:31 PM
Hi vikas,

Actually we have replied to your forum thread on January 20th, but due to a bug caused by data migration on our site, the reply did not make it on the live site. I am posting our reply here again, do not be alarmed when you see the original reply popup in this thread once we fix the missing data. Here is the reply from my colleague Petyo:

You receive the error in question because of incorrect ViewModel instantiation.
Copy Code
var viewModel =  kendo.data.ObservableObject.extend({

This creates a class, which in turn can be instantiated with a new constructor. 

Replacing the following line with
Copy Code
var viewModel =  kendo.observable({

resolved the problem. 

I would like to suggest that you look through the MVVM getting started section in the Kendo UI documentation for further details.


We would also like to remind you that we do not guarantee a reply in the public forums, although we do our best to answer all inquiries. Your reaction to threaten us with blogs and tweets because you did not receive an answer to a thread that has no guaranteed reply (and in this case due to a bug) is something you are free to do, although we're not really sure what is the effect you're hoping to achieve.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
vikas
Top achievements
Rank 1
Answers by
Steve
Telerik team
vikas
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Petyo
Telerik team
Share this question
or