This question is locked. New answers and comments are not allowed.
In my treeview I need to have children that are leaf nodes as well as children that are also containers. At the top level is objects of class mContainer, which contains ALBUMS and ITEMS. Albums contain ITEMS. I can;t figure out the Model Binding syntax to make this work. Do I need to have a single IEnumerable that holds both containers and nodes?
mContainer : tContainer{
IEnumerable<mAlbum> Albums;
}
mAlbum : tContainer {
}
mItem : tNode{
}
tContainer : tNode {
IEnumerable<mItem> Items;
}
tNode { string Name; }
mContainer : tContainer{
IEnumerable<mAlbum> Albums;
}
mAlbum : tContainer {
}
mItem : tNode{
}
tContainer : tNode {
IEnumerable<mItem> Items;
}
tNode { string Name; }