TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Allow user sorting to be disabled
In general, allowing the user to sort the view is desirable. However, in certain views, if the user sorts, it will disrupt the presentation of the data. We would prefer the data to be fixed in the sort order determined by the settings, with no ability to re-sort. Idea is to allow an option in the view setting whereby user sorting is not permitted.
ID
2071
Category
Customization
Author

Andrew Winters
Date Created
8/26/2024 7:19:49 AM
Date Updated
8/30/2024 5:56:40 AM
Status
New Idea
Score
60
Promoted By
Jorge SoláPatricio BustosPatricio Bustos
Nick AshcroftbasenineAndrew Winters
Comments
Nick Ashcroft 8/27/2024 2:52:02 AM
option for disabling customising would be useful also
basenine 8/29/2024 5:47:55 PM
Hello Andrew,
I hope you've been well.
Here's some css which will do what you want:

#frm_1351677 > section > table > thead > tr > th:nth-child(n) > a{
pointer-events: none;
cursor: not-allowed;
}

#frm_1351677 --> this bit makes it specific to the TABLE - replace it with the table you're trying to amend...
NOTE: this is NOT view specific. It will be active across all views in the whole table.
To find the right #frm:
--> right-click on the link
--> Inspect Element (opens up development console)
--> right-click on the element which starts with <a ......
--> copy selector path
--> replace whatever numeral is in here: th:nth-child(n) and replace with 'n' (for example, th:nth-child(3) --> th:nth-child(n))
--> add it to the dbstyles.css file in Resources

No guarantees it won't mess something else up....I've only tested to see if it will do [mostly] what you've requested 😉

Best regards
Brett
basenine 8/29/2024 5:50:10 PM
Just found how to get the specific view...it's a little trickier

You need to add something like: .v3-view-11752029 to the css.
For example, updating the previous css will now look like this:

#frm_1351677.v3-view-11752029 > section > table > thead > tr > th:nth-child(n) > a{
pointer-events: none;
cursor: not-allowed;
}
Best regards
Brett
basenine 8/30/2024 5:53:17 AM
It be good if we could edit a post/comment 😉

--> right-click on the link*

Replace with
--> right-click on a view column header link

.v3-view-11752029
The number is the view id. Replace with the view id specific to you.
Andrew Winters 8/30/2024 5:56:40 AM
Thanks, Brett!
Feedback
 
Back to Search Results