This question is locked. New answers and comments are not allowed.
Hi All!!!
I have two tables, "MenuPadre" that contain menu options and "MenuHijo" containing sub-options. These two tables are related.
The problem I have is that in the menu are the opcion from "MenuPadre", but not appear the chidren suboptions. Any idea about that i'm doing wrong ????.
This is the code for the view
Thanks...
Maria
I have two tables, "MenuPadre" that contain menu options and "MenuHijo" containing sub-options. These two tables are related.
The problem I have is that in the menu are the opcion from "MenuPadre", but not appear the chidren suboptions. Any idea about that i'm doing wrong ????.
This is the code for the view
Thanks...
Maria
<% Html.Telerik().Menu() .Name("Menu Dos") .BindTo(Model, mappings => { mappings.For<ModeloDatos.MenuPadre>(binding => binding .ItemDataBound((item, menupadre) => { item.Text = menupadre.Texto; }) .Children(menupadre => menupadre.MenuHijo)); mappings.For<ModeloDatos.MenuHijo>(binding => binding .ItemDataBound((item, menuhijo) => { item.Text = menuhijo.Texto; })); }) .Render(); %>