これを実行しようとしている人にとって、現時点ではすぐに使用することはできません。重複するグループ化ヘッダーを削除してから、重複するコンテナーをマージすることで、物事を機能させる方法を見つけました。次のコードを使用して、データソースの変更イベントにバインドします。
setTimeout(function () {
var headerMap = {};
$($("#listview .km-group-title .km-text").get().reverse()).each(function () {
var targetText = $(this).text();
if (headerMap[targetText] == null) {
headerMap[targetText] = true;
} else {
// merge any list items from the duplicate container into the next proceeding group container
$(this).parent().next("ul").children().prependTo($(this).closest("li").next("li").find("ul"));
// remove the (now empty) duplicate container
$(this).closest("li").remove();
}
});
}, 0);
仕事を終わらせる必要があります!これが、グループ化、サーバー ページング、エンドレス スクロールをまとめて実行しようとしている人に役立つことを願っています。