This question is locked. New answers and comments are not allowed.
Hello, I have a little problem. It seems that the grid does not call the ajax binding when trying to sort / page / filter. It never gets called.
I'm using the Entity Framework Code first model.
Here is the code :
Here is the view that is called when accessing for the first time the Index page :
and the partial view that should render the grid :
The layout file ( ~master page) :
Unfortunately, I can't get it working.
Is something wrong in any of those file ?
Thanks for you help.
I'm using the Entity Framework Code first model.
Here is the code :
public ActionResult Index(){ ICollection<Group> groups = prismaManager.GroupManager.Select(); return View(groups);}[Telerik.Web.Mvc.GridAction]public ActionResult _Index(){ ICollection<Group> groups = prismaManager.GroupManager.Select(); return View(new Telerik.Web.Mvc.GridModel { Data = groups });}
@model ICollection<Prisma.BO.Group>@{ ViewBag.Title = "Groups";}<fieldset> <legend class="noExpand">Groups</legend> @{Html.RenderPartial("_Index", Model);}</fieldset>and the partial view that should render the grid :
@model ICollection<Prisma.BO.Group>@{Html.Telerik().Grid<Prisma.BO.Group>().BindTo(Model).Name("Groups").Columns(columns => { columns.Bound(g => g).Filterable(true).Groupable(true).Sortable(true); columns.Bound(g => g.ShortName).Filterable(true).Groupable(true).Sortable(true); columns.Bound(g => g.Number).Filterable(true).Groupable(true).Sortable(true); }) .DataBinding(dataBinding => { dataBinding.Server().Select("Index", "Group"); dataBinding.Ajax().Select("_Index", "Group"); }) .Sortable() .Pageable() .Filterable() .Groupable() .Footer(true) .Render();}The layout file ( ~master page) :
<head>@Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.min.css").Combined(true).Compress(true))</head><body>...@Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)) </body>Unfortunately, I can't get it working.
Is something wrong in any of those file ?
Thanks for you help.