This question is locked. New answers and comments are not allowed.
hello,
i am currently at a loss as to why grid ajax binding is not working for me.. i patterned the solution to the telerik mvc demos. however, it always gives me an internal server error 500. see below for my controller and view code:
| // controller |
| public class HomeController : Controller |
| { |
| private CollegeDAL _college = new CollegeDAL(); |
| public ActionResult AjaxBinding() |
| { |
| return View(); |
| } |
| [GridAction] |
| public ActionResult _AjaxBinding() |
| { |
| List<ECollege> collegeList = new List<ECollege>(); |
| try |
| { |
| collegeList = _college.ListOfColleges(); |
| } |
| catch (Exception ex) |
| { |
| throw ex; |
| } |
| finally |
| { |
| _college = null; |
| } |
| return View(new GridModel(collegeList)); |
| } |
| } |
| // view |
| <h2>AjaxBinding</h2> |
| <% Html.Telerik().Grid<ECollege>() |
| .Name("Grid") |
| .Columns(columns => |
| { |
| columns.Bound(o => o.CollegeCode).Width(50); |
| columns.Bound(o => o.CollegeName).Width(100); |
| }) |
| .DataBinding(databinding => databinding.Ajax().Select("_AjaxBinding", "Home")) |
| .Pageable() |
| .Sortable() |
| .Scrollable() |
| .Groupable() |
| .Filterable() |
| .Render(); |
| %> |
can you please enlighten me as to why this is happening?
thank you.