Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141446 | Jun 15,2016 08:12 AM UTC | Dec 12,2018 07:29 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Grid |
JS
$("#Grid").ejGrid({
dataSource: ej.DataManager({ url: "/Home/DataSource", updateUrl: "/Home/Update", insertUrl: "/Home/Insert", removeUrl: "/Home/Delete", adaptor: "UrlAdaptor" }),
allowPaging: true,
Controller
public ActionResult Update(EditableOrder value)
{
OrderRepository.Update(value);
var data = OrderRepository.GetAllRecords();
return Json(data, JsonRequestBehavior.AllowGet);
}
public ActionResult Insert(EditableOrder value)
{
OrderRepository.Add(value);
var data = OrderRepository.GetAllRecords();
return Json(data, JsonRequestBehavior.AllowGet);
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.