This question is locked. New answers and comments are not allowed.
Hi,
I am trying to convert my Client Index View to use a Telerik Grid to display the clients. I have been reading through some examples and I am following the following Demo:
http://demos.telerik.com/aspnet-mvc/razor/grid/ajaxbinding
However when I am trying to test my code I get a popup as soon as grid databinds, saying: "Error! The requested URL returned 500 -error"
If I debug the Action in the controller all seem fine untill I step out of the Action then the debugger tries to locate a file called "GridActionAttribute.cs" in the following directory:
"Locating source for 'f:\114\Griffin\Trunk Full\Sources\Source\Telerik.Web.Mvc\UI\Grid\GridActionAttribute.cs"
Here is my View:
And my Controller Action:
Any idea why the Databind is not working correctly?
Kind Regards,
Paul
I am trying to convert my Client Index View to use a Telerik Grid to display the clients. I have been reading through some examples and I am following the following Demo:
http://demos.telerik.com/aspnet-mvc/razor/grid/ajaxbinding
However when I am trying to test my code I get a popup as soon as grid databinds, saying: "Error! The requested URL returned 500 -error"
If I debug the Action in the controller all seem fine untill I step out of the Action then the debugger tries to locate a file called "GridActionAttribute.cs" in the following directory:
"Locating source for 'f:\114\Griffin\Trunk Full\Sources\Source\Telerik.Web.Mvc\UI\Grid\GridActionAttribute.cs"
Here is my View:
@model IEnumerable<MUMSUtilities.Client> @using Telerik.Web.Mvc.UI @{ ViewBag.Title = "Client Index"; } <h2>Client Index</h2> <p> @Html.ActionLink("Create New", "Create") </p> @(Html.Telerik().Grid<MUMSUtilities.Client>("Clients") .Name("Grid") .Columns(columns => { columns.Bound(c => c.ClientName); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("AjaxBinding", "Client")) .Pageable() .Sortable() .Scrollable() .Groupable() .Filterable())And my Controller Action:
[GridAction] public ActionResult AjaxBinding() { var clients = db.Clients.ToList(); return View(new GridModel<Client> { Data = clients, Total = clients.Count }); }Any idea why the Databind is not working correctly?
Kind Regards,
Paul