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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -