BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
public ActionResult DataSource(DataManager dm)
{
IEnumerable Data = OrderRepository.GetAllRecords().ToList();
DataOperations operation = new DataOperations();
int count = Data.AsQueryable().Count();
if (dm.Skip != 0) //Paging
{
Data = operation.PerformSkip(Data, dm.Skip);
}
if (dm.Take != 0) //Paging
{
Data = operation.PerformTake(Data, dm.Take);
}
return Json(new { result = Data, count = count }, JsonRequestBehavior.AllowGet);
}
<div id="Grid"></div>
<script type="text/javascript">
$(function () {
var dm = ej.DataManager({
url: "/Home/DataSource",
adaptor: new ej.UrlAdaptor()
});
$("#Grid").ejGrid({
dataSource: dm,
allowPaging: true,
. .
. .
});
});
</script> |
Thanks, it works.