kendo Multi column Header grid

2 posts, 0 answers
  1. Prithu
    Prithu avatar
    1 posts
    Member since:
    Feb 2016

    Posted 10 Feb 2016 Link to this post

    Hi,

        I'm not able to add Multi column Header grid. I'm trying this

    @(Html.Kendo().Grid<SkyResMVC.Models.TAChartDetails>()
                            .Name("TAChartGrid")
                            .HtmlAttributes(new { style = "height: 400;" })
                            .Scrollable()
                            .Columns(columns =>
                                {
                                    columns.Bound(p => p.RoomType).Width(120).Title("A");
                                    columns.Group(group => group
                                    .Title("Contact Info")
                                        .Columns(info =>
                                        {
                                            info.Bound(x => x.ContactTitle).Width(200);
                                        })
                                );
                                })
                                    )

     

    I'm getting error like this-

    Kendo.Mvc.UI.Fluent.GridColumnFactory<SkyResMVC.Models.TAChartDetails>' does not contain a definition for 'Group' and no extension method 'Group' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.GridColumnFactory<SkyResMVC.Models.TAChartDetails>' could be found (are you missing a using directive or an assembly reference?)

     

    Please help me in this....

     

     

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2312 posts

    Posted 11 Feb 2016 Link to this post

    Hello Prithu,

    I am unable to reproduce the mentioned issue on our side. Could you specify what is the exact Kendo UI version that is used? If the problem is still persisting, please send us a runnable example, where it is reproducing, so we could inspect it locally and provide assistance.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top