Hi,
I have a telrik Grid (Razor engine) inside the PanelBar, but it always throws 500 error, I verified the Controller and its working fine, I think its the View has something wrong. I have pasted the code below, please review it and give your suggestion. I'm also getting error with code 12031 sometimes.
@{
Html.Telerik().PanelBar()
.Name("PanelBarName")
.Items(parent =>
{
parent.Add()
.Text("PanelBarItem1")
.Content(@<text>
@(Html.Telerik().Grid<Service.Entity.ObjectType>()
.Name("GridName1").HtmlAttributes(new { style = "width: 600px;" })
.DataKeys(keys =>
{
keys.Add(p => p.Id);
})
.DataBinding(dataBinding =>
{
dataBinding.Ajax()
.Select("ActionName", "ControllerName");
})
.Columns(columns =>
{
columns.Bound(c => c.Id).Hidden();
columns.Bound(c => c.Item1).Width(50);
})
.Pageable(paging => paging.PageSize(int.Parse(System.Configuration.ConfigurationManager.AppSettings["PageSize"].ToString())))
.Scrollable(scrll => scrll.Height(int.Parse(System.Configuration.ConfigurationManager.AppSettings["BigScrollSize"])))
.Sortable()
)
</text>)
.Expanded(false);
})
.Render();}
Thanks in Advance,
Karthik