0
我實現劍道樹列表,但我得到了一些問題如下:最大調用堆棧大小
RangeError: Maximum call stack size exceeded
at init._defaultParentId
代碼:
var bindingData = [{ "RateTypeID": 1, "c": null, "Type": "abc", "based": "xyz" },
{ "RateTypeID": 1, "c": 1, "Type": "pqr", "based": "xyz" },
{ "RateTypeID": 3, "c": 1, "Type": "mno", "based": "xyz" }];
var dataSource = new kendo.data.TreeListDataSource({
data: bindingData,
schema: {
model: {
id: "RateTypeID",
parentId:"c",
fields: {
RateTypeID: { field: "RateTypeID", type: "number", editable: false, nullable: false },
c: { field: "c", nullable: true },
Type: { type: "string" },
basedon: { type: "string" },
}
}
}
});
檢查你提到你需要'Type'或基於on' – SwapNeil
喜'UnitType' /'based'或'什麼列名.. @ swapnilnax,我想這樣做,但不工作得到同樣的錯誤 –