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

w2grid: when property reorderColumns is true, sorting columns doesn't work as expected #2505

Open
marcboon opened this issue Mar 12, 2024 · 0 comments

Comments

@marcboon
Copy link

marcboon commented Mar 12, 2024

With reorderColums: true, and sortable: true in one or more columns, the sorting doesn't work. At least not with an external data source (specified in the url property). Whenever I click on the column header, two successive request are made in quick succession, One with sort direction: asc, and one with sort direction: desc, for the same column. The first request is then immediately cancelled, it seems, so the result from the server is always sorted desc

With reorderColums: false (or not specified), the sorting works normally, with just one request sent to the server, with direction alternating between 'asc' and 'desc' after each click on the column header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant