2014-02-09 2 views

답변

3

데이터 소스에 schema.total을 설정하여이 작업을 수행 할 수 있어야한다고 생각합니다. 같은

뭔가 :

var myData = [...]; 

var determineTotal = function() { 
    return myData.length; // or whatever value you want for the total. 
}; 

var ds = new kendo.data.DataSource({ 
    data: myData, 
    schema: { 
     total: determineTotal 
    } 
}); 

$("#grid").kendoGrid({ 
    dataSource: ds 
}); 
0

우리가 항목의 총 수를 설정할 수 있습니다 수동으로 datasourceobject

DataSource.total = function(){ 
          return 250 
        } 
를 사용하여
관련 문제