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

Binding Different Child

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Antonio
Top achievements
Rank 1
Antonio asked on 22 Feb 2014, 11:06 PM
Hi,
how can i bind to a Treevire the below data ?
var dataTree = [{
Name: "Multiservice 01",
Services: [
{
Name: "Servizio 01", year: 1977, BlocksIN: [
{ Name: "BlockIN 01", Fields: [{ Name: "Field 01" }, {Name : "Field 02" } ]},
{ Name: "BlockIN 02" }],
BlocksOUT: [
{ Name: "Blocco OUT 01", Fields: [{ Name: "Field 01" }, { Name: "Field 02" }] },
{ Name: "Blocco OUT 02" }]
},
{ Name: "Servizio 02", year: 1980 },
{ Name: "Servizio 03", year: 1983 },
{ Name: "Servizio 04", year: 1983 }]
}
];


1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 25 Feb 2014, 07:09 PM
Hello Antonio,

Use the schema.data property to indicate where the children are. See the following jsBin sample. Note that you cannot show the blocksIN and blocksOUT side-by-side.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Antonio
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or