asp.net - Easiest way to convert IGrouping to IHierarchicalDataSource -
i have list of business objects want display in menu. can use linq created nested groups match desired structure have manually iterate through each instantiate , populate menu items. i'm using devexpress aspxmenu supports ihierarchicaldatasource , ihierarchicalenumerable. what's easiest way me create convert grouped list (as igrouping) 1 of these interfaces?
i had similar hierarchical list database display in tree control. ended doing using linq2xml create xelements necessary model hierarchy, , passing top element tree control.
Comments
Post a Comment