Open Shiiboun opened 7 years ago
You need to implement rowIdentity()
function for your specific use case. Your request will return brand new instances each time so the table thought they are different rows.
https://swimlane.gitbooks.io/ngx-datatable/content/api/table/inputs.html
Edit: that solution is only for checkbox. RowDetails can't be fixed
So there is no chance to have it working for RowDetails? Any workaround would be great
@kowalczm
Please check https://github.com/swimlane/ngx-datatable/pull/975
Whenever row changes, rowDetails will be cleared. There is no workaround as for now.
I'm submitting a ... (check one with "x")
Current behavior I am updating my data every 5 sec and reciving it like this:
this.subscription = TimerObservable.create(0, 5000) .subscribe(() => this.ngZone.run(() => { this.getData(); }));
Now everytime I get my data, the checkbox I selected is getting unchecked. Is there any way to avoid this behavior?
I tried to work with
trackByProp
but aint got that working.Edit: It also happens with my detail-row
Expected behavior The checkbox is still checked even if I get new/updated data.
Table version: 10.2.3
Angular version: 4.3.6
Browser: [Chrome| Firefox]
Language: [TypeScript 2.5.2]