-
Notifications
You must be signed in to change notification settings - Fork 753
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
tablesorte with rowspan not work: #806
Labels
Comments
I've had a similar problem. I've resolved it useing event handlers: $('table').bind("sortEnd updateComplete",function(e, table) {
$(table).find("[data-row]").each(function(idx, parent){
var $parent = $(parent);
var $rows = $(table).find('[data-parent="'+$parent.data('row')+'"]');
// this is needed only to keep "odd"/"even" classes in sync with parent
// uncomment only if you use zebra
// if ($parent.hasClass('odd')) {
// $rows.removeClass('even').addClass('odd');
// } else {
// $rows.removeClass('odd').addClass('even');
// }
// move rows only if needed
if ($rows.first().prev('tr')[0] != $parent[0]) {
$parent.after($rows);
}
// cancel hiding child rows
$rows.show();
});
}); This requires to add
Here is fiddle: http://jsfiddle.net/djhqmt92/ |
Thanks @loostro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tablesorte with rowspan not work:
http://jsfiddle.net/a0nghxdz/
The text was updated successfully, but these errors were encountered: