This question is locked. New answers and comments are not allowed.
Hi,
i m creating panelbars with foreach:
Everything works except for the Content. All panelbars use the same Content (the first one) :/
It 's working if instead of using .Content() i use .LoadContentFrom() but I'm not quite please with that solution. Is there a way to achieve my goal using the .Content() property (server side) ?
Thanks.
i m creating panelbars with foreach:
Html.Telerik().PanelBar() .Name("pnlFichePatient") .Items(bar => { foreach (EVENEMENT ev in Model) { bar.Add() .Text(String.Format("{0} - {1} - {2}",ev.EVENEMENTTYPE.EVENEMENTTYPE1,ev.DATEVENEMENT,ev.MEDECINS.PRENOM+" "+ev.MEDECINS.NOM)) .ImageUrl(string.Format("{0}/{1}.png", Url.Content("~/Content/iconsEvent"), ev.EVENEMENTTYPE.ICONE.ToString())) .ImageHtmlAttributes(new { height = "16px", width = "16px" }) .Expanded(true) .Content(@<text> Fake content : @ev.DATEVENEMENT </text>) ; } }) .Render();Everything works except for the Content. All panelbars use the same Content (the first one) :/
It 's working if instead of using .Content() i use .LoadContentFrom() but I'm not quite please with that solution. Is there a way to achieve my goal using the .Content() property (server side) ?
Thanks.