简体   繁体   English

动态Kendo UI TreeList

[英]Dynamic Kendo UI TreeList

I have a json with a param Ids, and For each Id I would like to create a Tree List and bind the data with the given ID. 我有一个带参数ID的json,对于每个ID,我想创建一个Tree List并将数据与给定ID绑定。 I was wondering what are the ways to achieve it. 我想知道实现它的方法是什么。 Especially the columns are identical but how to provide the configuration settings for each dynamically created Tree Lists. 特别是这些列是相同的,但是如何为每个动态创建的树列表提供配置设置。

{
"id":"1",
"data": "hello",
"status": "inProgress"
},

{
"id":"1",
"data": "hello",
"status": "inProgress"
},

{
"id":"1",
"data": "hello",
"status": "inProgress"
},

{
"id":"2",
"data": "hello",
"status": "inProgress"
},

{
"id":"2",
"data": "hello",
"status": "inProgress"
}

Here all the Id 1 data will be part of one TreeList and the ones with Id 2, will be part of another TreeList. 在这里,所有Id 1数据将成为一个TreeList的一部分,而具有Id 2的数据将成为另一个TreeList的一部分。

最后,必须重新建模我的数据以获取父子ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM