Hi,
The nodes comprising my HierarchcalDataSource possess two fields that hold potential children and all children from both fields need to be displayed in my kendoTreeView. But the model.children property only allows specifying a single field (I believe - still very new to this). Basically I am looking for something that does the following where the two children fields are idenfied as 'Children1' and 'Children2':
dataSource: new kendo.data.HierarchicalDataSource({
schema: {
model: { id: "Id",
hasChildren: function (item) {
return ((item.Children1 != null && item.Children1.length > 0) ||
(item.Children2 != null && item.Children2.length > 0));
},
children: "Children1" or "Children2"
}
}
}
Thank you,
Tom
The nodes comprising my HierarchcalDataSource possess two fields that hold potential children and all children from both fields need to be displayed in my kendoTreeView. But the model.children property only allows specifying a single field (I believe - still very new to this). Basically I am looking for something that does the following where the two children fields are idenfied as 'Children1' and 'Children2':
dataSource: new kendo.data.HierarchicalDataSource({
schema: {
model: { id: "Id",
hasChildren: function (item) {
return ((item.Children1 != null && item.Children1.length > 0) ||
(item.Children2 != null && item.Children2.length > 0));
},
children: "Children1" or "Children2"
}
}
}
Thank you,
Tom