Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144947 | May 29,2019 05:39 PM UTC | May 30,2019 10:58 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: DataGrid |
<ejs-grid id="Grid" Datasource="ViewBag.datasource" allowPaging="true">
<e-grid-columns>
<e-grid-column field="OrderID" headerText="Contract Name" textAlign="Right" width="120"></e-grid-column>
</e-grid-columns>
</ejs-grid>
……………………..
public async Task<IActionResult> Index()
{
// await _context.Orders.ToList();
// return View();
ViewBag.datasource = _context.Orders.Take(100).ToList();
return View();
} |
|
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.