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

Removable sort on DataTable - TreeTable #235

Closed
Deepak2985 opened this issue Mar 12, 2020 · 7 comments
Closed

Removable sort on DataTable - TreeTable #235

Deepak2985 opened this issue Mar 12, 2020 · 7 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@Deepak2985
Copy link

If we apply sorting to the column in datatable. We can then only sort it ascending and descending.
There is no option of removing the sort. What I am mean to say on clicking third time on the column header the sorting should get removed.

@Deepak2985 Deepak2985 changed the title Sorting applied to table once applied cannot be removed Sorting applied to table once cannot be removed Mar 12, 2020
@Sellec
Copy link

Sellec commented Mar 12, 2020

I had never see such behaviour in any site or component (.Net controls,web components etc). Do you have real examples of this?

@Deepak2985
Copy link
Author

Yes I have seen please find the link below.
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/defaultfunctionality.htm?light

@Deepak2985
Copy link
Author

One more Angular material datatable
https://material.angular.io/components/table/overview

@Deepak2985
Copy link
Author

@Sellec The thing is if we add sort to a column then we should have an option to remove the sort. Right?

@cagataycivici
Copy link
Member

Although it is not a common UX, it is available in PrimeReact, see the removable sort option.

https://primefaces.org/primereact/showcase/#/datatable/sort

If there is demand on this issue, we can add it to PrimeVue as well.

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 14, 2020
@cagataycivici cagataycivici changed the title Sorting applied to table once cannot be removed Removable sort on DataTable Mar 14, 2020
@wanglin86769
Copy link

For the bootstrap-vue component library, Clicking on a non-sortable column header will clear the sorting.
https://bootstrap-vue.js.org/docs/components/table

@cagataycivici cagataycivici added this to the 1.3.0 milestone Apr 18, 2020
@cagataycivici cagataycivici self-assigned this Apr 18, 2020
@cagataycivici
Copy link
Member

cagataycivici commented Apr 18, 2020

Adding removableSort enables this behavior where 3rd click removes the sorting on a column, also works on multiple column sorting. Will be available with next week's 1.3.0.

@cagataycivici cagataycivici changed the title Removable sort on DataTable Removable sort on DataTable - TreeTable Apr 18, 2020
cagataycivici added a commit that referenced this issue Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

4 participants