Hi,
TL;DR - currently, SVAR Svelte DataGrid allows you to toggle a column between ASC/DESC sorting, but not back to an "unsorted" state; therefore, I am requesting that a third state be added (when toggling sortable columns) which cancels the sort on that column
Long Story:
I am trying to add column sorting to my grid using sort: true on each IColumn object. However, when I start clicking the column header to toggle sorting, it only toggles between ASC/DESC sort—there is no third state to return the grid to cancel the sort on that column. However, I've seen many grid implementations have the second or third state be the no-sort state (e.g. ASC -> DESC -> no-sort), and it would be great for this to be available natively within SVAR Svelte DataGrid.
I've already explored the various sorting primitives like sortMarks and custom sorting functions, which I suppose could help me achieve this in theory (i.e. to handle sorting externally, outside the grid). However, I anticipate this would require a decent amount of administration logic, so it wouldn't be ideal.
Just thinking through the implementation, this behavior should work fine for the multi-sort use case, since the third state would merely cancel the sort for that column only (independent of other columns).
Thanks for reading this far! Please let me know your thoughts.
Caleb
Hi,
TL;DR - currently, SVAR Svelte DataGrid allows you to toggle a column between ASC/DESC sorting, but not back to an "unsorted" state; therefore, I am requesting that a third state be added (when toggling sortable columns) which cancels the sort on that column
Long Story:
I am trying to add column sorting to my grid using
sort: trueon eachIColumnobject. However, when I start clicking the column header to toggle sorting, it only toggles between ASC/DESC sort—there is no third state to return the grid to cancel the sort on that column. However, I've seen many grid implementations have the second or third state be the no-sort state (e.g. ASC -> DESC -> no-sort), and it would be great for this to be available natively within SVAR Svelte DataGrid.I've already explored the various sorting primitives like
sortMarksand custom sorting functions, which I suppose could help me achieve this in theory (i.e. to handle sorting externally, outside the grid). However, I anticipate this would require a decent amount of administration logic, so it wouldn't be ideal.Just thinking through the implementation, this behavior should work fine for the multi-sort use case, since the third state would merely cancel the sort for that column only (independent of other columns).
Thanks for reading this far! Please let me know your thoughts.
Caleb