endlessScroll is invalid or DataSource is invalid.

2 posts, 0 answers
  1. mjohn mjohn
    mjohn mjohn avatar
    9 posts
    Member since:
    Mar 2010

    Posted 10 Oct 2013 Link to this post

       I try your listview step by step, when i learn "endlessScroll": http://docs.kendoui.com/api/mobile/listview#configuration-endlessScroll
      I found it is invalid when use DataSource's filter.    may this is DataSource's bug.
      Below is the code:  also can run below code in: http://jsbin.com/AdItib/5/edit
    <div data-role="view">
      <ul data-role="listview" data-source="foo" data-endless-scroll="true" data-template="foo-template">

    <script type="text/x-kendo-template" id="foo-template">
        #: name # - #: modified #

    var i = 0, pageSize = 20;

    var max = 1000;
    var data = [];
    for (; i < max; i ++) {
        data.push({ name:  i, modified: +new Date() });

    var foo = new kendo.data.DataSource({data:data, pageSize: pageSize});

    foo.filter({ field: "name", operator: "gt", value: "200" });

    new kendo.mobile.Application();
    Below code show no results, if  i remove foo.filter({ field: "name", operator: "gt", value: "200" }); then listview will show result.
    So ListView's endlessScroll is invalid when DataSource has filter.


  2. Petyo
    Petyo avatar
    2444 posts

    Posted 11 Oct 2013 Link to this post


    I can confirm this problem - we are looking into addressing this for our next major release (along with support for local data). 

    To clarify - currently the virtual scrolling mechanism supports only server-side paging and filtering.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top