0

I see info on adding "disable sort" but not how to remove the default behavior where the 3rd click disables sort and is "neutral" on sortable headers. In reality, having a disable sort state feels broken since it does not actually change the sort order. How do I get rid of the 3rd state and just have it toggle ASC and DESC?

   columns:any[] = [
     { name:'Email', field:'email' },
     { name:'Sessions', field:'sessionCount', enableSorting:false}   //something like enableClearSorting:false
   ]

1 Answer 1

2

You can use the suppressRemoveSort attribute:

columns:any[] = [
     { name:'Email', field:'email' },
     { name:'Sessions', field:'sessionCount', enableSorting:false, suppressRemoveSort: true }
   ]
Sign up to request clarification or add additional context in comments.

1 Comment

awesome, I looked all over for this, but wasn't sure what to call the thing I was looking for!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.