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
Sort by multiple columns #70
Comments
I would also love for you to implement this enhancement. Thanks for all your work on this to date! |
+1 on the multiple column sort option!! Thanks for the tool, big help so far. |
I made this extension for sorting by multiple columns #919: |
Great feature!! Can you review when we hide a column after sort some column and then we try to open the modal?? I think it is not working.. the add level button is disabled |
Weird, please see if it is working here: https://jsfiddle.net/dimbslmh/s2h1gzj9/embedded/result/ Seems to be working even with only one column visible. |
Ah.. wait, it happends when you have the columns dropdown open instead of dismissing the columns dropdown first. |
Steps:
|
And also with your steps it seems. Ok, I'll try to fix it. |
Ok, thanks but it is a great great feature!! |
Should be working correctly now! |
Yes, it is working know!! great! Thanks you! |
Hi, Great to hear this, so this is available in master branch right ? and not in 1.8 |
Thanks @djhvscf and @dimbslmh. |
can we use this on top of 1.6 or do we need to first upgrade to 1.8 |
I think we should use the lastest release! @wenzhixin @rajeshbtlit |
You have to use also the boostrap-table.css 1.8.0 |
Yes I am using the following css
|
Please use the latest version: boostrap-table.js 1.8.0 and boostrap-table.css 1.8.0. |
Thanks, will let u know how it goes. And a big thanks for you guys for giving the framework. |
Thanks everyone for there great efforts , see a glitch here, when integrated with another table , on click of the sort icon, the old tables sorting options appear. JS fiddle here@ https://jsfiddle.net/jupitor/h2c683cn/ I have created two tables and added the multiple sort attribute for both and the second table always shows the first tables sorting columns @dimbslmh could you please have a look |
Hi, Guys please help!!! |
@rajeshbtlit consider using jquery-datatables: https://www.datatables.net/ That's what I've done, because it supports sorting by multiple columns. |
We support this feature. See this: https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/multiple-sort |
Thanks Dennis, thing is I have integrated this . JS fiddle here@ https://jsfiddle.net/jupitor/h2c683cn/ I have created two tables and added the multiple sort attribute for both and the second table always shows the first tables sorting columns |
I will create a issue because this is an important issue |
Thanks awesome guys!! |
pardon, does Bootstrap-table version 1.10.1 support multisort ? or I must use bootstrap-table version 1.8.1? |
It supports it... you should use the multiple-sort extension |
@djhvscf Thank you for your reply, but I have tried the version 1.10.1 with multisort v 1.0.0 but nothing seems to be working.. but when i replace the bootstrap-table v 1.10.1 with v1.8.1, it's working.. Here is the jsfiddle which use v1.10.1, thanks in advance |
What's the problem? @woltbit |
I have tested with both versions and it seems it is working as expected @woltbit |
hmphh.. well that is weird, the problem is when I try to use multisort version 1.0.0 with bootstrap-table.js version 1.10.1 it somehow doesn't work properly. But in the end I try to switch to bootstrap-table.js version 1.09.1 and everything was working fine. so thank you for your time, it should ok for me right now. Keep up the good work! |
This extension no more works. Just so that you guys are aware. |
Is there a way to initialize a bootstrap-table to be sorted by multiple columns?
Suppose you have a table like this:
I want the default view to look like this (sorted first by Priority descending, then Target Date ascending).
The text was updated successfully, but these errors were encountered: