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

Uncaught TypeError: Cannot call method 'hide' of undefined

1 Answer 51 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sergey
Top achievements
Rank 1
Sergey asked on 14 Apr 2013, 07:16 PM
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
                });
             
                
            });

1 Answer, 1 is accepted

Sort by
0
Sergey
Top achievements
Rank 1
answered on 14 Apr 2013, 07:24 PM
Figured it out - my html was not correct.
Tags
AppBuilder Windows client
Asked by
Sergey
Top achievements
Rank 1
Answers by
Sergey
Top achievements
Rank 1
Share this question
or