BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ejs-grid #grid [dataSource]='data | async' .... (dataSourceChanged)= 'dataSourceChanged($event)'>
...
</ejs-grid>
export class AsyncPipeComponent {
...
@ViewChild('grid')
public grid: GridComponent
....
public dataSourceChanged(state: DataStateChangeEventArgs): void {
//On error use closeEdit method.
this.grid.closeEdit();
}
}
|
<ejs-grid #grid [dataSource]='data | async' [editSettings]='editSettings' (actionComplete)="actionComplete($event)" [toolbar]='toolbar'
(dataSourceChanged)='dataSourceChanged($event)' (dataStateChange)= 'dataStateChange($event)'>
. . . . .
</ejs-grid>
. . . . .
actionComplete(args) {
if ((args.requestType === 'beginEdit' || args.requestType === 'add')) {
let dialog = args.dialog;
// you can customize the dialog as per your requirement
dialog.height = "300px";
dialog.width = "500px"
}
}
|