I\'m using jQuery Datatables and I would like to incorporate row grouping into the table.
I have attempted to incorporate it myself by adding rows and a click event
My quick and dirty solution is this...
$('.group').click(function() {
//$(this+" .group_date .date_arrow").addClass("rotateSVG");
var nextItem = $(this).next('tr');
while(nextItem.attr('class') != 'group') {
nextItem.fadeToggle();
if(nextItem.next('tr').length == 0) {
break;
}
nextItem = nextItem.next('tr');
}
});