Hi all,
It seems that TreeView can't show nodes children if model has a property called exactly 'children'.
For example it doesn't show child nodes if bound to model like this:
var
inline =
new
kendo.data.HierarchicalDataSource({
data: [
{
categoryName:
"Storage"
,
subCategories: [
{ subCategoryName:
"Wall Shelving"
},
{ subCategoryName:
"Floor Shelving"
},
{ subCategoryName:
"Kids Storage"
} ],
children:[]
},
{
categoryName:
"Lights"
,
subCategories: [
{ subCategoryName:
"Ceiling"
},
{ subCategoryName:
"Table"
},
{ subCategoryName:
"Floor"
}],
children:[]
}
],
schema: {
model: {
children:
"subCategories"
}
}
});
This is an example:
http://dojo.telerik.com/OQuFo
It's a bug or is intended?
Adolfo Marinucci