Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144097 | Apr 18,2019 08:50 AM UTC | Apr 19,2019 12:15 PM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: Grid |
HTML:
<ejs-grid #normalgrid id='Normalgrid' [dataSource]='data' allowPaging='true' (actionComplete)='actionComplete($event)' (rowSelecting)='rowSelecting($event)' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'>
<e-columns>
<e-column type="checkbox" width='140'></e-column>
</e-columns>
</ejs-grid>
TypeScript:
export class AppComponent {
public flag: boolean = false;
actionComplete(args) {
if (args.requestType == "delete") {
this.flag = true;
}
}
rowSelecting(args) {
if (this.flag) {
this.flag = false;
args.cancel = true;
}
}
} |
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.