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
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!