This question is locked. New answers and comments are not allowed.
Hi,
I am facing problem with the following code, when i click on panel it loads its contents in new page rather than content area.
i am using version 2010.3.1125.235 with MVC-2 please guide
I am facing problem with the following code, when i click on panel it loads its contents in new page rather than content area.
i am using version 2010.3.1125.235 with MVC-2 please guide
<% Html.Telerik().PanelBar() .Name("PanelBar") .Items(items => { foreach (var panel in Model) { switch(panel.panel_id) { case 1: items .Add() .Text(panel.panel_name) .Content(() => {%> <%= Html.Action("StudentBio", "Student", new {class_student_id = ViewData["class_student_id"]}).ToHtmlString()%> <% }) .Expanded(true); break; case 2: items .Add() .Text(panel.panel_name) .LoadContentFrom("StudentExamination", "Student", new {class_student_id = ViewData["class_student_id"],
class_id = ViewData["class_id"]}); break; case 3: items .Add() .Text(panel.panel_name) .LoadContentFrom("StudentYearlyPerformance", "Student", new {class_student_id = ViewData["class_student_id"],
class_id = ViewData["class_id"]}); break; case 4: items .Add() .Text(panel.panel_name) .LoadContentFrom("StudentAttendance", "Student", new {class_student_id = ViewData["class_student_id"],
class_id = ViewData["class_id"]}); break; } } }) .Render(); %>