-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable cells with templating are not updated #1711
Comments
i have a similar problem with formatted values in a templated column:
Angular 2.3.1 / PrimeNG 1.1.2 / Chrome 55.0.2883.87 m / Typescript 2.0.3 |
@chrisi to solve the problem temporarily I used below trick: Note ( let-i="rowIndex") and (dataRows[i]) where dataRows is array of results on current page. I hope this will help you. |
I have a problem with Observables, when I delete the first record works ok, but if I try to delete again the first record, "rowData" return the old value that was previously deleted. I have tested this issue with html and ngFor only, but the problem is with "p-dataTable". |
@lynx12 refresh your datatable after delete and I think this is in general a good practice because there may be multiple people working on same screen. I had same issue and I solved by doing refresh. If you look at the example that I have provided above I am passing index "i" in my delete function and here is my deleted function: `
} |
I observed that even rowIndex displaying the first page results.Can you please confirm on this. |
I also experience strange behaviour with DataTable, I have a master-detail and the detail shows wrong content after second change in master, with wrong I mean it shows column values from wrong rows, like if I have an array of key-values, the key1 becomes valueX instead of value1. I have reverted to 1.1.1 and the problem is gone, so it must be some bug in the latest changes to DataTable |
I'm experiencing this same buggy behavior when modifying the array passed to the DataTable. In those columns with body template, neither the data nor the row index are being updated |
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Link from documentation/example: http://www.primefaces.org/primeng/#/datatable/templating
Current behavior
If you have DataTable with custom template and there is column with action (for deleting records etc.) and if you are on second page click event in action column does not propagates correct record, rather it send record at same index on first page.
Expected behavior
When clicked on action on second (or higher) page against any row it should propagate/bind correct record.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Performing CRUD operation on second and success page is broken because of this bug.
Please tell us about your environment:
-> All
Language: [all | TypeScript X.X | ES6/7 | ES5]
-> TypeScript 2.0
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: