-
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
Sort not working for nested dynamic columns in table #16059
Comments
@taruntadikonda you are using the app.component.html
app.component.ts `import { Component } from '@angular/core'; @component({ |
@maruthumj there is nothing wrong in the example code that was provided. The data you have provided is not nested JSON. You can try with a nested JSON data. |
You need to mention the key values of table row data to the "field" value of psortablecolumn property. But in your code you are passing different values to the field property. Please go through the code which I have commented above |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap? Thanks a lot for your understanding! |
Describe the bug
Sort is not working if there is nested object structure for the dynamic columns for the table.
Environment
Its a angular project with angular version 18.0.6 and primeng 17.18.3
Reproducer
https://stackblitz.com/edit/github-p4yago?file=src%2Fapp%2Fapp.component.html
Angular version
18.0.6
PrimeNG version
17.18.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
22.4.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: