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

Feature request: Non-sortable rows #255

Closed
wir-zzz-ecash opened this issue Mar 11, 2013 · 4 comments
Closed

Feature request: Non-sortable rows #255

wir-zzz-ecash opened this issue Mar 11, 2013 · 4 comments

Comments

@wir-zzz-ecash
Copy link

Feature request: mark a row as non-sortable so when a column is sorted this row will keep its position.
For example, mid-table headers or a footer.
Thanks,

@corythorpe
Copy link

I know this isn't exactly what you were looking for, but the documents page has an interesting way of approaching this problem. If you look at this page http://mottie.github.com/tablesorter/docs/ and scroll down you'll see there is both a mid-table header and a footer. The mid-table header is another <tbody> which has the class class="tablesorter-infoOnly" and while it acts as a mid-table header, the content below it ceases to be sortable.

Additionally, to achieve the footer you see on that page you can simply declare <tfoot><tr><td></td></tr></tfoot> where tr, td are elements of the table like any other entry. Don't forget to style it!

@Mottie
Copy link
Owner

Mottie commented Mar 11, 2013

Hi @ATMcash!

Would the static rows widget mentioned in issue #120 work for you?

Also, in the write your own widget demo, you could use that repeatHeaders widget to do essentially the same thing

@Mottie
Copy link
Owner

Mottie commented Mar 11, 2013

Actually @Tasoli, the rows below the "mid-table header" are also sortable, but sort separately from the previous group (separate tbodies). Check out the sorting multiple tbodies demo.

@wir-zzz-ecash
Copy link
Author

@Mottie , The static rows widget worked super.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants