This is a migrated thread and some comments may be shown as answers.

[Solved] PanelBar but does not expand the child

1 Answer 143 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hernando
Top achievements
Rank 1
Hernando asked on 20 Feb 2012, 03:06 PM
good day!
I have a PanelBar but does not expand the child, I wonder why is not working, thanks.

<%= Html.Telerik().PanelBar()
             .Name("menuGeneral")
             .ExpandMode((PanelBarExpandMode)Enum.Parse(typeof(PanelBarExpandMode), PanelBarExpandMode.Single.ToString()))
             .BindTo((IEnumerable<Nomina.Models.menuAplicacion>)ViewData["menu"], mappings =>
             {
 
                 mappings.For<Nomina.Models.menuAplicacion>(binding => binding
                   .ItemDataBound((item, itm) =>
                   {
                       item.Text = itm.descripcion;
                       item.ImageUrl = Url.Content(itm.icono);
                       item.ImageHtmlAttributes.Add("style", "margin-right: 10px");
                   })
 
                    .Children(itm => Nomina.Models.itemsAplicacion.listaItems(itm.idmenu)));
                       mappings.For<Nomina.Models.itemsAplicacion>(binding => binding
                           .ItemDataBound((item, product) =>
                        { item.Text = product.descripcion; }));
 
 
             })
%>

1 Answer, 1 is accepted

Sort by
0
Sri
Top achievements
Rank 1
answered on 16 Apr 2012, 08:17 PM
Is there any solution for this? It doesn't work in MVC!!!
Tags
PanelBar
Asked by
Hernando
Top achievements
Rank 1
Answers by
Sri
Top achievements
Rank 1
Share this question
or