This is a migrated thread and some comments may be shown as answers.

Hide grouping header by default

2 Answers 287 Views
Grid
This is a migrated thread and some comments may be shown as answers.
loi
Top achievements
Rank 1
loi asked on 17 Jul 2012, 12:23 AM
The old Telerik Mvc Extensions code goes something like this..
    .Groupable(grouping => grouping.Groups(groups =>
        {
            groups.Add(p => p.ModuleName);
        }).Visible(false)
    )

Anyone knows the equivalent code for Kendo MVC?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 17 Jul 2012, 06:51 AM
Hi,

As the grouping descriptors should be set to the DataSource, if you do not want the group panel to be shown, you should simply omit the Groupable setting from the Grid's configuration.

Html.Kendo().Grid()
    .Name("Grid"
    .DataSource(dataSource => dataSource       
        .Ajax()
        .Group(groups => groups.Add(p => p.ModuleName))     
    )

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
loi
Top achievements
Rank 1
answered on 17 Jul 2012, 02:37 PM
That works.
Thanks.
Tags
Grid
Asked by
loi
Top achievements
Rank 1
Answers by
Rosen
Telerik team
loi
Top achievements
Rank 1
Share this question
or