BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@Component({
selector: 'app-root',
template: `<button (click)='toggleDragDrop($event)'>toggleDragDrop</button>
<ejs-grid #grid [dataSource]='data' allowPaging='true' showColumnChooser='true' [allowResizing]="true" [allowRowDragAndDrop]='allowDragDrop'
[allowGrouping]="true"[allowReordering]="true"
>
. . .
</ejs-grid>`,
providers: [ToolbarService, EditService, PageService]
})
export class AppComponent {
public ngOnInit(): void {
this.toolbar = ['Add', 'Edit', 'Delete','ColumnChooser'];
. . .
}
toggleDragDrop(args) {
this.grid.allowRowDragAndDrop = !this.grid.allowRowDragAndDrop;
console.log(this.allowDragDrop);
this.grid.refresh();
}
} |