|
constructor(private service: OrdersService) {
this.data = service;
}
public dataStateChange(state: DataStateChangeEventArgs): void {
this.service.execute(state);
}
public ngOnInit(): void {
. . . .
this.groupOptions = {};
}
public dataBound(args: any): void {
this.grid.showSpinner();
if (this.grid.currentViewData.length > 0) {
this.grid.hideSpinner();
if (this.flag) {
this.groupOptions = { showDropArea: false, columns: ['OrderID'] }
}
this.flag = false;
}
}
<ejs-grid #grid id='Grid' [dataSource]='data | async' allowPaging= 'true' [groupSettings]='groupOptions' (dataBound)='dataBound($event). . . . (dataStateChange)= 'dataStateChange($event)'>
. . . .
</ejs-grid>
|
It's not working for me.
Nahom,
We have prepared a sample for the “Remote data with Grouping” with using the above same codes. Please refer the below sample for more information.
If you still face the issue, please share any issue reproducible sample or try to reproduce the issue with our above attached sample.
Regards,
Rajapandi R