Not getting Button options?
Not getting Button options?
Hi,
i am new to dataTable, using the below code i am generating grid
javascript code:
$(document).ready(function () {
$('#example').dataTable({
"sDom": 'T<"clear">lfrtip',
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
"sExtends": "print",
"bShowAll": false
}
]
}
});
});
here, i am not getting any button options, can you please tell me why it is not getting?
Thanks.
Answers
Don't use TableTools. It is deprecated and no longer supported. Instead us Buttons.
Thanks,
Allan
Hi,
Thanks for replying , i want group rows like below example url and export excel how can use this?
http://legacy.datatables.net/examples/advanced_init/row_grouping.html
Thanks
You would use the
selected: true
export option as shown in this example:https://datatables.net/extensions/buttons/examples/print/select.html
Kevin
There is no option to have the group grouping in the Excel export at the moment. You'd need to modify the code to add that ability if you needed.
Allan