I am trying to implement the row reordering using Kendo UI grid for angular and I was following this https://www.telerik.com/kendo-angular-ui/components/grid/how-to/row-reordering/ document. When I hardcode the grid data on the ts file itself then grid reordering is working with drag and drop. But when I use the rxjs to fetch the data then same functionality is not working.
Not working when I do this. If I moved data fetch logic to Resolve then it will work.
ngOnInit() {
this.dataService.GetData().subscribe(data => {
this.gridData = process(data, {});
}
});
}
But When I do this it is working
ngOnInit() {
const exampleData = [{id: 1,task: "Initiation3",Flow: 1},
{id: 2,task: "Initiation3",Flow: 1},
{id: 3,task: "Initiation3",Flow: 1}]
this.gridData = process(exampleData , {});
}
Is there specific thing I need to do to implement this when I get grid data from service call?
dataService
fetching the data correctly? – igg