This question is locked. New answers and comments are not allowed.
Hello,
I've got an asp.net webpage that has a telerik menu on it.
I bind to a flat table that is dynamically built. It looks like this:
Then I fill the table.
Then I bind the table to the menu like this:
Since the binding of Hierarchical menus in MVC seems to be nothing like ASP.Net, I need some help trying to bind this to a MVC Menu.
Thanks
I've got an asp.net webpage that has a telerik menu on it.
I bind to a flat table that is dynamically built. It looks like this:
var tblMyMenu = new DataTable(); tblMyMenu.Columns.Add("ID"); tblMyMenu.Columns.Add("ParentID"); tblMyMenu.Columns.Add("Url"); tblMyMenu.Columns.Add("Text");
Then I fill the table.
Then I bind the table to the menu like this:
mainMenu.DataSource = tblMyMenu; mainMenu.DataFieldID = "ID"; mainMenu.DataFieldParentID = "ParentID"; mainMenu.DataTextField = "Text"; mainMenu.DataNavigateUrlField = "Url"; mainMenu.DataBind();
Since the binding of Hierarchical menus in MVC seems to be nothing like ASP.Net, I need some help trying to bind this to a MVC Menu.
Thanks