TableTools and RowGrouping: Exporting all rows of an expanded group
TableTools and RowGrouping: Exporting all rows of an expanded group
Hi Allan,
I am using TableTools with RowGrouping (DataTables-1.10.0). I wanted to select all the datas of the expanded group for exporting. So I added the following code wich works fine (Please let me know if a best solution exists).
{
"sExtends": "text",
"sButtonText": "Select All",
"fnClick": function ( ) {
var sCurrentGroup = $("td.expanded-group").attr("data-group");
$("tr[data-group^='" + sCurrentGroup + "']").click();
}
}
Thanks in advance
Replies
Hello just a little mistake expanded and not extended