Cannot read property 'get' of undefined

12 posts, 0 answers
  1. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 08 Jan 2014 Link to this post

    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.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Jan 2014 Link to this post

    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.
  3. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 09 Jan 2014 Link to this post

    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.
  4. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 11 Jan 2014 Link to this post

    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.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 13 Jan 2014 Link to this post

    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.
  6. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 14 Jan 2014 Link to this post

    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
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 15 Jan 2014 Link to this post

    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.
  8. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 15 Jan 2014 Link to this post

    Please down the project from https://www.dropbox.com/s/52x3nkp7oi2jw0a/vCare_patient.zip

    Thanks,
    Vikas
  9. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 17 Jan 2014 Link to this post

    Can I get some sort of resolution to this issue...I spent half of my evaluation period waiting for resolution of this issue 
  10. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 20 Jan 2014 Link to this post

    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.
  11. vikas
    vikas avatar
    7 posts
    Member since:
    Dec 2013

    Posted 21 Jan 2014 Link to this post

    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
  12. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 23 Jan 2014 Link to this post

    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.
Back to Top