我的telerik网格通过ajax填充。我的删除方法:
[HttpPost]
[GridAction]
public ActionResult _AjaxModelDelete(CarModel obj)
{
Model m = dm.GetModelById(obj.Id);
dm.DeleteModel(m);
List<Model> res = dm.GetModelsByVendorId(m.VendorId).ToList();
return View(new GridModel<CarModel>
{
Data = res.Select(x => new CarModel { Id = x.Id, Name = x.Name })
});
}
Grid有客户端事件onDelete,但我需要在事件onDeleted上重新加载网格。怎么解决这个问题?