Uncaught TypeError: Cannot call method 'hide' of undefined

2 posts, 0 answers
  1. Sergey
    Sergey avatar
    22 posts
    Member since:
    Aug 2008

    Posted 14 Apr 2013 Link to this post

    I am trying to create a simple list view, and keep getting this error - Uncaught TypeError: Cannot call method 'hide' of undefined
    I started with a kendo mobile project template.  I added a data.js file - to setup data source.  I added a list view.  Then, I added a line to $ ready function to configure list view in code.  I can see the call to the service made, so I think this part is correct.  
    Any ideas why I am getting the error?

    Thank you.


                var app = new kendo.mobile.Application(document.body, { transition: "slide", layout: "mobile-tabstrip" });
                $(function(){
                    
                  $("#artistsListView").kendoMobileListView({
                        endlessScroll: true,
                        dataSource: data.artists,
                        template: "artists-list-template",
                        scrollTreshold: 10,
                        loadMore: true
                    });
                 
                    
                });
  2. Sergey
    Sergey avatar
    22 posts
    Member since:
    Aug 2008

    Posted 14 Apr 2013 Link to this post

    Figured it out - my html was not correct.
Back to Top