TableTools and RowGrouping: Exporting all rows of an expanded group

TableTools and RowGrouping: Exporting all rows of an expanded group

jDioufjDiouf Posts: 2Questions: 0Answers: 0
edited June 2014 in Free community support

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

  • jDioufjDiouf Posts: 2Questions: 0Answers: 0

    Hello just a little mistake expanded and not extended

This discussion has been closed.