Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141171 | Nov 28,2018 07:39 AM UTC | Nov 30,2018 04:52 AM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: DataGrid |
[Index.cshtml]
<ejs-grid id="Grid" toolbar="@(new List<string>() { "ColumnChooser", "Edit", "Add" })" allowPaging="true" allowReordering="true" >
<e-data-manager json="@ViewBag.datasource" adaptor="RemoteSaveAdaptor" insertUrl="/Home/Insert"></e-data-manager>
---
<e-grid-columns>
----
</e-grid-columns>
</ejs-grid>
[HomeController.cs]
public IActionResult Index()
{
var order = OrdersDetails.GetAllRecords();
ViewBag.datasource = order.ToArray();
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.