This is a migrated thread and some comments may be shown as answers.

What are the ways to achieve dynamic Kendo UI TreeList

1 Answer 150 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sibin
Top achievements
Rank 1
Sibin asked on 19 Dec 2016, 01:35 PM

Let's say I have an array of Ids, and For each Id I would like to create a Tree List and bind the data with the given 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 tree List and the ones with Id 2, will be part of another List.

 

Thanks,

Sibin S

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 21 Dec 2016, 12:20 PM
Hi Sibin,

You can pass the filtered array of initial data to the respective TreeList's dataSource option, e.g.:

http://dojo.telerik.com/UCuKo

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeList
Asked by
Sibin
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or