Hi Bruce,
Thanks for using Syncfusion Products.
We have analyzed your requirement and achieved by using “UrlAdaptor” for sent the postback to the server. Please find the below code snippet.
[view]
@(Html.EJ().Grid<RemoteServerAdaptorSample_129241.Models.Order>("Editing")
.Datasource(ds => ds.URL("Home/Data").UpdateURL("Home/Update").Adaptor("UrlAdaptor"))
. . . .
)
[Controller]
public ActionResult Data(DataManager dm)
{
var DataSource = OrderRepository.GetAllRecords();
DataResult ds = new DataResult();
ds.result = DataSource.Skip(dm.Skip).Take(dm.Take);
ds.count = DataSource.Count;
return Json(ds, JsonRequestBehavior.AllowGet);
} |
Please refer the online documentation for urlAdaptor as follows:
http://help.syncfusion.com/ug/js/default.htm#!documents/crudoperationwithser.htm
For your reference we have attached the sample and the same can be downloaded from the link
http://www.syncfusion.com/downloads/support/directtrac/117991/Urladaptor-330385755.zip
Please let us know if you have any queries.
Regards,
Balaji Marimuthu