Skip to content
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: Pass sorted data on sort event #3818

Closed
TheAkhi opened this issue Mar 29, 2023 · 1 comment
Closed

DataTable: Pass sorted data on sort event #3818

TheAkhi opened this issue Mar 29, 2023 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@TheAkhi
Copy link

TheAkhi commented Mar 29, 2023

Describe the feature you would like to see added

It would be very useful if DataTableSortEvent event would also pass the sorted values.
Just the same way DataTableFilterEvent passes the filtered collection in 'filteredValue':

image

The 'value-changed' callback is passing the sorted data, however once you apply a filter the returned data is not sorted anymore.

Is your feature request related to a problem?

No response

Describe the solution you'd like

DataTableSortEvent should pass the sorted (and filtered if applicable) data with a property named 'sortedValue'.

Describe alternatives you have considered

No response

Additional context

No response

@TheAkhi TheAkhi added Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Mar 29, 2023
@TheAkhi TheAkhi changed the title DataTable: Emit Sorted Data DataTable: Pass sorted data on sort event Mar 29, 2023
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Dec 19, 2023
@mertsincan mertsincan added this to the 3.45.0 milestone Dec 19, 2023
@mertsincan
Copy link
Member

Fixed for the next version. You can use value-change event to access processed data on filter/sort/page

Best Regards,

@mertsincan mertsincan self-assigned this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants