Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144356 | May 2,2019 11:20 AM UTC | May 3,2019 05:17 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: Grid |
<button (click)="add($event)" >Add</button> // for adding a new row with input box
<button (click)="update($event)" >Update</button> // updating the added row
<ejs-grid #grid id='Normalgrid' [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'>
<e-columns>
. . .
</e-columns>
</ejs-grid> |
public add(e: any): void {
this.grid.editModule.addRecord();
}
public update(e: any): void {
this.grid.editModule.endEdit();
} |
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.