This question is locked. New answers and comments are not allowed.
i use this code
<%: Html.Telerik().Grid<TelerikMvcApplication1.Models.Customer>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(o => o.CustomerID_FK).Width(100);
columns.Bound(o => o. CustomerName).Width(200);
columns.Bound(o => o.CustomerFullName);
columns.Bound(o => o.CostomerNO);
})
.DataBinding(dataBinding => dataBinding.Ajax().Select("Index", "Customer"))
%>
and controller is
public ActionResult Index()
{
Entities en = new Entities();
var c = en.Customers;
return View(c);
}
but do not show customers in grid
and show this error:
Error! The requested URL did not return JSON.
<%: Html.Telerik().Grid<TelerikMvcApplication1.Models.Customer>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(o => o.CustomerID_FK).Width(100);
columns.Bound(o => o. CustomerName).Width(200);
columns.Bound(o => o.CustomerFullName);
columns.Bound(o => o.CostomerNO);
})
.DataBinding(dataBinding => dataBinding.Ajax().Select("Index", "Customer"))
%>
and controller is
public ActionResult Index()
{
Entities en = new Entities();
var c = en.Customers;
return View(c);
}
but do not show customers in grid
and show this error:
Error! The requested URL did not return JSON.