-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Bugs in TreeTable #7511
Comments
I have a similar problem. Treetable customSort property does not bind.
Angular version : 8.0.1 |
Unable to replicate with PrimeNG 9, if the issue persists please create a new ticket with a test case reproducing the issue e.g. stackblitz or a github repo and it will be reviewed by our team once again. |
At my company we are using version 7.1.3 of PrimeNG. With some logging I could figure out that
Which means, instead of |
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/github/ol2ka/primeng-issues
Current behavior
Toggle all () doesn't work if p-treeTable dataKey property is used (e.g. <p-treeTable dataKey="name").
The root node is not selected in this case and nothing happens if I click second time.
Custom sorting of tree table doesn't seem to work at all. I just copied the sort function from the example in the documentation, and nothing happens when I try to sort.
Expected behavior
Works as designed.
Minimal reproduction of the problem with instructions
Just use "dataKey" property for the p-treeTable and try to use p-treeTableHeaderCheckbox
(sortFunction)="customSort($event)" [customSort]="true"
customSort(event: SortEvent) {
console.log('event', event)
//event.data = Data to sort
//event.mode = 'single' or 'multiple' sort mode
//event.field = Sort field in single sort
//event.order = Sort order in single sort
//event.multiSortMeta = SortMeta array in multiple sort
}
The text was updated successfully, but these errors were encountered: