Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144865 | May 27,2019 04:51 AM UTC | May 30,2019 12:53 PM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: DataGrid |
[index.cshtml]
@{
List<object> commands = new List<object>();
commands.Add(new { type = "Edit" , buttonOption = new {content="Edit" } });
commands.Add(new { type = "Delete", buttonOption = new {content="Delete" } });
commands.Add(new { type = "Save", buttonOption = new { content="Aprrove"} });
commands.Add(new { type = "Cancel", buttonOption = new { content="Reject"} });
}
<h2>EJ2 Grid</h2>
<div>
<ejs-grid id="Grid" dataSource="ViewBag.DataSource" allowResizing="true" allowSorting="true" allowExcelExport="true" toolbarClick="toolbarclick" allowPaging="true" toolbar="@(new List<string>() { "ExcelExport" })">
<e-grid-editSettings allowAdding="true" allowEditing="true" allowDeleting="true"></e-grid-editSettings>
<e-grid-columns>
. . .
<e-grid-column headerText="Manage Records" width="200" commands="commands"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div>
|
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.