Hi Guys,
I'm using VS2010 with MVC 3 before. The grouping of the grid before is working as expected using this codes.
@(Html.Telerik().Grid<MyModelHere>()
.Name("MyGridNameHere")
.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>");
})
.EnableCustomBinding(true)
.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);
}).Visible(false))
.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.
Alvin
I'm using VS2010 with MVC 3 before. The grouping of the grid before is working as expected using this codes.
@(Html.Telerik().Grid<MyModelHere>()
.Name("MyGridNameHere")
.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>");
})
.EnableCustomBinding(true)
.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);
}).Visible(false))
.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.
Alvin