Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > PanelBar > Grid inside PanelBar throws 500 error
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered Grid inside PanelBar throws 500 error

Feed from this thread
  • Karthikeyan avatar

    Posted on Feb 7, 2012 (permalink)

    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

  • Karthikeyan avatar

    Posted on Feb 7, 2012 (permalink)

    I missed the GridAction tag for Binding method. It works fine after that.

    Thanks,
    Karthik

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > PanelBar > Grid inside PanelBar throws 500 error
Related resources for "Grid inside PanelBar throws 500 error"

ASP.NET MVC PanelBar Features  |  Documentation  |  Demos  |  Telerik TV ]