Hi,
I am able to successfully bind hierarchical data with two levels (for example, "Categories\Products"), but I would like to databind 3 different collections of different types, the result being something like:
+Categories
CategoryA
CategoryB
+Products
Product1
Product2
+Location
LocationX
LocationY
where
public IList<Category> Categories { get; set; }
public IList<Product> Products { get; set; }
public IList<Location> Locations { get; set; }
Similar to this question: http://www.telerik.com/forums/treeview-binding-to-multiple-object-types-in-mvvm
Aside from 'selecting' each item into a new common type, is there a better way to do this?
Thanks for your input,
I am able to successfully bind hierarchical data with two levels (for example, "Categories\Products"), but I would like to databind 3 different collections of different types, the result being something like:
+Categories
CategoryA
CategoryB
+Products
Product1
Product2
+Location
LocationX
LocationY
where
public IList<Category> Categories { get; set; }
public IList<Product> Products { get; set; }
public IList<Location> Locations { get; set; }
Similar to this question: http://www.telerik.com/forums/treeview-binding-to-multiple-object-types-in-mvvm
Aside from 'selecting' each item into a new common type, is there a better way to do this?
Thanks for your input,