This question is locked. New answers and comments are not allowed.
I cannot understand because when I try to bind via ajax this linq query the grid shows the messase no records to display
controller
Can somebody help me?
Thank you
@(Html.Telerik().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(a => a.Genre.Name).Width(100); columns.Bound(a => a.Artist.Name).Width(200); columns.Bound(a => a.Title); columns.Bound(a => a.Price).Width(120); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "StoreManager")) .Sortable() )public ViewResult Index() { return View(); } [GridAction] public ActionResult _AjaxBinding() { var albums = from p in db.Albums .Include("Genre") .Include("Artist") select p; return View(new GridModel<Album> { Data = albums.ToList() } ); }Can somebody help me?
Thank you