I have my menu data coming back in a DataSet with Relations created between the tables. All the sample code i can find shows how to bind the WebDataMenu with a WebHierarchicalDataSource. Is there any way to bind to just a regular DataSet with Relations? I tried setting the DataSource to the DataSet, but all that gets me is a bunch of "Infragistics.Web.UI.Framework.Data.DataSetNode" objects on the menu with no way of showing children.
Try running your datasets through the WebHierarchicalDataSource, and then binding to that.
That's the method I had to use with the WebDataTree, and I think that uses the same binding model as the WebDataMenu.
Do you know of any easy ways to convert a standard relational dataset to a WHDS? I tried reading the help files and there wasn't much help. Searching the WHDS forum for DataSet didn't yield any results either.
I'm not intimate with the WHDS... only know enough about it to get a couple simple pages to bind.
Not sure how to do it in codebehind, but maybe if you place a DataSet control on the page, you'll be able to add that to the WHDS at design-time?
I didn't try to feed the dataset directly into WHDS... instead I placed a SQLDataSource control (in dataset mode) on the page, and then created a view off of that in WHDS. That way, I was able to use the schema tools to make sure everything wired up correctly.
I've always been a fan of constructing my datasets in codebehind because I feel like I've got more control over every call to the database. Sure wish there was better documentation on how to do that kind of thing.
Another option would be to skip databinding altogether and just loop through your dataset and add your nodes in code.