MVC 4 telerikGrid Grouping error.

2 posts, 0 answers
  1. Alvin
    Alvin avatar
    1 posts
    Member since:
    Dec 2011

    Posted 25 Mar 2013 Link to this post

    Hi Guys,

    I'm using VS2010 with MVC 3 before. The grouping of the grid before is working as expected using this codes.

            .Columns(columns =>
                         columns.Bound(o => o.DueDateShortString).Width(75).Title(Html.Talent().GlobalTextResource("DueDate").ToString());               
                         columns.Bound(o => o.LearningCurriculumLabel).Hidden().ClientGroupHeaderTemplate("<div class='gridHeaderLabelGroup headerStandardGroup'><#= Key #></div>");
        .DataBinding(dataBinding => dataBinding.Ajax().Select("RequiredTrainingGrid", "LearningManagement", new {id = Model.PersonID}).Enabled(true))
        .Sortable(sorting => sorting.SortMode(GridSortMode.SingleColumn).OrderBy(x => x.Add("DueDateShortString")))
        .Groupable(grouping => grouping.Groups(groups =>
                    groups.Add(o => o.LearningCurriculumLabel);
        .Pageable(paging => paging.Enabled(true).PageSize(5))

    But after migrating to VS2012 MVC 2012. This code is not working anymore.

    Need your help on this guys.

  2. Daniel
    Daniel avatar
    2219 posts

    Posted 27 Mar 2013 Link to this post

    Hello Alvin,

    Could you provide a little more information about the problem you are experiencing? Is there an exception thrown when using the specified configuration? Is the grouping not working correctly? If the grouping is not working as expected, could you provide your custom binding implementation?
    Also, please verify that you have included the binding configuration for old assemblies in your Web.config file:

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="" newVersion="" />
            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="" newVersion="" />
            <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="" newVersion="" />
    Kind regards,
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top