Open brandondrew opened 10 years ago
Hi @brandondrew
You can add the data-dynatable-no-sort attribute to the header of the download column
<th data-dynatable-no-sort='true'>Download</th>
Let me know if you need anything else.
Thanks!
(Perhaps my request should be to add that to the web site.)
We currently have this language on the site:
http://www.dynatable.com/#sorting
If we have a column we don't want to be sortable, we just add the data-dynatable-no-sort attribute
But I think these needs to be under its own sub heading. I am going to leave this open while I discuss with @JangoSteve
Thank you for the feedback @brandondrew
a yes! I obviously missed that. Sorry!
I did look in that section but I think I was searching for the words "sorting" and "disable" and reading every sentence that contained one or the other, as well as glancing through the #sorting section for anything that stood out to me. I didn't think of searching for "sortable", and I obviously didn't read slowly enough to notice that sentence.
On Wed, Aug 27, 2014 at 5:44 PM, Douglas Drouillard < notifications@github.com> wrote:
We currently have this language on the site:
http://www.dynatable.com/#sorting
If we have a column we don't want to be sortable, we just add the data-dynatable-no-sort attribute
But I think these needs to be under its own sub heading. I am going to leave this open while I discuss with @JangoSteve https://github.com/JangoSteve
Thank you for the feedback @brandondrew https://github.com/brandondrew
— Reply to this email directly or view it on GitHub https://github.com/alfajango/jquery-dynatable/issues/141#issuecomment-53645318 .
Brandon Zylstra brandon.zylstra@gmail.com
I have a table in which the final column has two links in each row, one marked PDF and the other marked Spreadsheet. Of course the links (that is, the URLs) are different in each row, but the text for the links is the same, so sorting that column makes no sense. I would assume this is a relatively common situation.
It would be useful to be able to specify that this column ("Download" in my case) should not be sortable, since it serves no purpose.
As far as I can tell it is only possible to disable sorting globally, and not per column. (At least I couldn't find anything on the dynatable.com.)