I have grid which does ajax binding.
View
@(Html.Telerik().Grid<TelerikAjaxGrid.Models.Orders>()
.Name("OrdersGrid")
.Columns(columns =>
{
columns.Bound(c => c.OrderID).Width(200);
columns.Bound(c => c.ShipName);
columns.Bound(c => c.ShipAddress);
})
.DataBinding(dataBinding => dataBinding.Ajax().Select("_Select", "Home"))
.Sortable()
.Pageable()
.Groupable()
.Filterable()
)
(I also was inserted all requied component in _Layout.cshtml)
Controller
[GridAction]
public ActionResult _Select()
{
var _entities = new NorthwindEntities();
var _orders = _entities.Orders.ToList();
return View(new GridModel(_orders));
}
The grid shows up, but there is no data in it.??!!
And i find out error with firebug (browse with Firefox) in Console:
|
POST http://localhost:4646/Customer/_Select |
500 Internal Server Error |
|
|
Regards,
Jack Strong
------------------
My project in
attachment (use Northwind db)