You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Big fan of this project in particular the MvcSiteMapNode attribute. What I'd like to do is bind the nodes collected by mvcsitemapprovider with a menu from devexpress. I found some sample code from some years back where the developer was able to call GetHierarchicalDataSourceView from the ChildNodes property like this:
SiteMap.RootNode.ChildNodes.GetHierarchicalDataSourceView()
but that no longer seems possible.
Is there any way of getting an object that implements IHierarchicalEnumerable similar to the code snippet above?
Thanks
The text was updated successfully, but these errors were encountered:
I took a look and it seems that IHierarchialEnumerable could be supported. It has a single member, GetHierarchyData() which returns a IHierarchyData type.
IHierarchyData has 2 methods and 4 properties, all of which could be mapped to their counterparts in the MvcSiteMapProvider.SiteMapNode type.
But the real concern is how is the Item property used within the DevExpress menu? It returns type object.
If it is expecting there to be a System.Web.SiteMapNode there, then there may be a problem. There will also be a problem if it is expecting to iterate the properties through the default Index method (because there no longer is one).
So, I suggest you make a fork and implement it to try it out (assuming you have Reflector or something similar to see how it is implemented in System.Web). If you can get it working with DevExpress, then it would definitely be something I would accept as a pull request.
Big fan of this project in particular the MvcSiteMapNode attribute. What I'd like to do is bind the nodes collected by mvcsitemapprovider with a menu from devexpress. I found some sample code from some years back where the developer was able to call GetHierarchicalDataSourceView from the ChildNodes property like this:
SiteMap.RootNode.ChildNodes.GetHierarchicalDataSourceView()
but that no longer seems possible.
Is there any way of getting an object that implements IHierarchicalEnumerable similar to the code snippet above?
Thanks
The text was updated successfully, but these errors were encountered: