Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142585 | Feb 11,2019 10:21 AM UTC | Feb 12,2019 04:16 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Grid |
var grid = new ej.grids.Grid({
dataSource: data,
allowPaging: true,
toolbar: ['Add', 'Edit', 'Delete', 'Update', 'Cancel'],
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Dialog'},
actionComplete: (e) => {
if (e.requestType == 'beginEdit' || e.requestType == 'add') {
e.form.querySelector("tr").remove() // in this sample check box is in first row
}
},
pageSettings: { pageCount: 5 },
toolbar: ['Add', 'Edit', 'Delete'],
columns: [
{ type: "checkbox", width: 50 },
{ field: 'OrderID', headerText: 'ID', visible:false, textAlign: 'Right', width: 120, isPrimaryKey: true }
. . .
]
});
grid.appendTo('#Grid'); |
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.