페이지 매김을 사용하여 서버 URL에서 데이터를로드하는 webix 트리 테이블을 사용하고 있습니다. 서버 URL은 페이지 당 100 개의 레코드를로드합니다 (예 : total_count
).Webix 페이지 매기기 및 그룹화가 눈에 띄게
지금까지 문제가 없습니다.
하지만 열에 그룹화를 적용하면 오류가 발생합니다. 내가 디버깅 할 때 나는 그것이 100 개의 레코드가 지금까지로드되고 에러를 던져 버리는 1000 개의 레코드 (total_count 기반)를 처리하려고하기 때문에 실패하고 있다는 것을 이해했다.
grouping
+ remote pagination
을 함께 사용하면 webix treetable
일 수 있습니다.
webix.ready(function() {
var gridColumns = [{
// ...
}];
var grid = webix.ui({
container: "testA",
view: "treetable",
columns: gridColumns,
url: "server-url.php"
scheme: {
$group: gridColumns[0].id
},
datafetch: 100,
pager: {
container: "paging_here",// the container where the pager controls will be placed into
size: 100, // the number of records per a page
group: 5 // the number of pages in the pager
}
});
});
을하고, HTML 그것은 불행히도 작동하지 않습니다
<div id="testA" style='width:1200px; height:600px;'></div>
<div id="paging_here"></div>
오! 지금까지로드 된 100 개의 레코드에 대해서만 그룹화를 수행하도록 코드를 수정할 수있는 쉬운 방법이 있습니까? – Prasad