我实现了剑道树列表,但我遇到了一些问题,如下所示:
RangeError:超过
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" },
}
}
}
});