0

看起来“按下加载更多”选项不适用于最新版本的 Kendo Mobile UI (2012-q3)。我在 Galaxy Nexus 和 iPod 上试过。

http://demos.kendoui.c​​om/mobile/listview/press-to-load-more.html

任何修复的想法?

4

1 回答 1

1

这是一个错误,我们修复了它,修复将在下一个内部版本中提供。

作为一种解决方法,您可以重新设置按钮上的事件处理(从演示中获取的初始化代码):

    var listview = $("#load-more").kendoMobileListView({
        dataSource: dataSource,
        template: $("#load-more-template").text(),
        loadMore: true
    }).data("kendoMobileListView");

    listview._loadButton
        .off("click.kendoMobileListView")
        .on("touchend.kendoMobileListView click.kendoMobileListView", $.proxy(listview._nextPage, listview));

这将破坏stopLoadMore方法,因此最好在可用时获取更新。

于 2012-12-21T09:12:54.797 回答