This question is locked. New answers and comments are not allowed.
Hi,
I have problem with implementing custom binding and grouping with telerik mvc grid. i'm not found any sollution how to do that, that is why i made my own sollution, which dosen't work;/ and i really don't know why this is so.
I' using ajax with custom binnding, my method looks like:
and view:
or
and i see grid without grouping and with white last collumn.
P.S i'm using 2010.1.518.
Regards.
I have problem with implementing custom binding and grouping with telerik mvc grid. i'm not found any sollution how to do that, that is why i made my own sollution, which dosen't work;/ and i really don't know why this is so.
I' using ajax with custom binnding, my method looks like:
[GridAction(EnableCustomBinding = true)] public ActionResult _CustomBinding(GridCommand command) { IQueryable<Person> data = this.PrepareData().AsQueryable(); return View(new GridModel { Data = data.GroupBy(x=>x.FirstName), Total = this.PrepareData().Count() }); }<%= Html.Telerik().Grid(Model) .Name("Grid") .Pageable(settings => settings.Total((int)ViewData["total"])) .DataBinding(dataBinding => dataBinding .Ajax() .Select("_CustomBinding", "Defualt") ) .EnableCustomBinding(true) .Sortable().Groupable(grouping => grouping .Groups(groups => { //Group by Country groups.Add(c => c.FirstName); }) ).Filterable()%>or
<%= Html.Telerik().Grid(Model) .Name("Grid") .Pageable(settings => settings.Total((int)ViewData["total"])) .DataBinding(dataBinding => dataBinding .Ajax() .Select("_CustomBinding", "Defualt") ) .EnableCustomBinding(true) .Sortable().Groupable().Filterable()%>and i see grid without grouping and with white last collumn.
P.S i'm using 2010.1.518.
Regards.