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

using "Pull down to refresh " gives me "a.scroller is undefined" error

1 Answer 55 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 23 Apr 2012, 03:01 PM
using "pullToRefresh: true," on a listview element gives me "a.scroller is undefined" error.  If I comment out   "pullToRefresh: true," I do not get the error.  Can anyone see what Im doing wrong here?
<div data-role="view" data-title="Control Panel - Mobile" id="listtickets" data-init="listTicketsInit">
     <h2>Tickets</h2>
     <p><a data-align="left" data-role="button" href="/support/newticket/">New ticket</a></p
     <ul id="support_list" data-style="inset"
          
     </ul>
 </div>
      
 
<script id="support_list_template" type="text/x-kendo-template">
     <li style="font-weight:normal" >
         <div style="float:left; width:20% ">
             #= DateCreated #
         </div>
          <div style="float:left; width:80% ">
             <a href="/support/view/#= ThreadID #">#= Subject #</a>
         </div>
      </li>  
</script>
 
<script>
  function listTicketsInit() {
     
       
      var ticketdata = <?=json_encode($tickets)?>;
        
       var dataSource = new kendo.data.DataSource({
           data: ticketdata,
           dataType: "json",
           schema: {
             model: {
                 id: "ThreadID",
                 fields: {
                     DateCreated: "DateCreated",
                     ThreadID: "ThreadID",
                     Subject: "Subject"
                    }
                }
            
        });
 
       $("#support_list").kendoMobileListView({
           dataSource: dataSource,
           pullToRefresh: true,
           appendOnRefresh: true,
           template: $("#support_list_template").text()
       });
Many thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 24 Apr 2012, 09:35 AM
Hello,

This is a known limitation of the present implementation (we may consider improving that for future releases). You can use the pullToRefresh only with declarative widget initialization syntax.  

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView (Mobile)
Asked by
Lee
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or