This question is locked. New answers and comments are not allowed.
Here is code slice from cshtml file named "_TabPartial.cshtml" .
Html.Telerik().TabStrip().Name("ttl"+ TelerikMvcApplication2.Domain.Class1.GetX ).Items(items =>{ //foreach (System.Xml.Linq.XElement x in Model.Elements()) for(int i = 0; i < Model.Elements().Count(); i++ ) { System.Xml.Linq.XElement x = Model.Elements().ToList()[i]; //add a tab items.Add().Text(x.Attribute("Name").Value).Content(() => { Html.RenderPartial("_TabPartial", x); // Call self }); } }).Render();.
Above code works , but if the looping construct is changed to foreach then the code
Content(() => { Html.RenderPartial("_TabPartial", x); });Thanks
Sush