I'm using X-editable with ngx-datatable on Angular 6 and it's working well, but there is one problem which I can't solve...After updating field with X-editable attached, a new value appears and it's like attached to datatable row index instead of row.id, and when sorting the table, this value is in a row in which it was in the beginning... don't know, that the issue is on X-editable or ngx-datatable or there is problem with my implementation
ok. I solve this with the help from variable which I'm using to check if data is ready, and only then I display datatable... in this case, I did it this way:
onUpdate() {
this.loading = true
{....} saving
setTimeout(() => {
this.loading = false
}, 0);
}
in template
<ngx-datatable *ngIf="!loading"></ngx-datatable>
datatable is reloaded and X-editable also