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
[grid] Add option to explicitly set the initial sorting priority #1945
Comments
You can set the Do I understand correctly that you expect the API to be able to configure how these values of the sorters are getting applied by default? Would you expect it to be a numeric index? |
Yes, a numeric index would be great. Maybe in each |
I stumbled across this issue as well last week. Would be nice to have an option for this. The priority could even be the index in the sortOrder array. |
It also would be nice to have the possibility to control which sorting direction will be applied on the first click of a column. So the column is not sorted initially but on first click I want it to be sorted in desc order not in asc order. I don't see any possibility to achieve this yet. |
Any update? |
I would also like this, but I think the sorting algorithm would need to be changed for both The problem is that the sort algorithm re-assigns the order based on the array index, and adding elements to the array takes place in a static order (column order), so the default sort order would always be the column order. This became a rabbit hole. Sorting algorithm changes work, but the display order number can be inflated with clever clicking. |
Is there any way to explicitly set the initial ordering priority/sorting in vaadin grid columns?
The text was updated successfully, but these errors were encountered: