TableTools.BUTTONS.refresh = {
"sAction": "text",
"sFieldBoundary": "",
"sFieldSeperator": "\t",
"sNewLine": "<BR>",
"sToolTip": "",
"sButtonClass": "DTTT_button_refresh",
"sButtonClassHover": "DTTT_button_refresh_hover",
"sButtonText": "Refresh",
"mColumns": "all",
"bHeader": true,
"bFooter": true,
"fnMouseover": null,
"fnMouseout": null,
"fnClick": function(nButton, oConfig) { this.s.dt.oInstance.fnAdjustColumnSizing(); this.fnResizeButtons(); },
"fnSelect": null,
"fnComplete": null,
"fnInit": null
};
/*
* Example initialisation
*/
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": { "aButtons": [ { "sExtends": "refresh"} ]
}
} );
} );
var oDataTable = $('#ctl00_ContentPlaceHolder1_GridEstUnidades').dataTable({
"bJQueryUI": false
, "bSortClasses ": false
, "bDeferRender": true
, "iDeferLoading": 100
, "bProcessing": true
, "aaSorting": []
, "bScrollCollapse": true
, "sScrollX": "100%"
, "sScrollY": "500px"
, "oLanguage": {
"sProcessing": "Processando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sEmptyTable ": "Não foram encontrados resultados",
"sZeroRecords": "Não foram encontrados resultados",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando de 0 até 0 de 0 registros",
"sInfoFiltered": "(filtrado de _MAX_ registros no total)",
"sInfoPostFix": "",
"sInfoThousands": ".",
"sSearch": "Buscar:",
"sUrl": "",
"oPaginate": {
"sFirst": "",
"sPrevious": "",
"sNext": "",
"sLast": ""
}
}
, "aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 12,13,14 ] }
, { "sWidth": "0px", "aTargets": [ 12,13,14 ] },
{ "bVisible": false, "aTargets": [ 12,13,14 ] }
, { "bSearchable": false, "aTargets": [ 12,13,14 ] }
]
, "bStateSave": true
, "iCookieDuration": 60*60*12
, "sPaginationType": "listbox", "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "Todos"]]
, "sDom": 'RCTV<"clear">lfrtipP'
, "oColVis": { "buttonText": "Colunas", "bRestore": true, "sRestore": "Restaurar", "sAlign": "right", "activate": "mouseover"
, "aiExclude": [ 12,13,14 ] }
, "oTableTools": {
"sSwfPath": "../scripts/jquery/js/../swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{ "sExtends": "print", "sButtonText": "Impressão", "mColumns": "visible", "sToolTip": "Impressão",
"sMessage": "",
"sInfo": "<h6>Impressao</h6><p>Por favor utilizar a funcionalidade de impressão do browser para imprimir esta tabela. Pressione ESC (escape) quando terminar." }
, { "sExtends": "copy", "sButtonText": "Clipboard", "mColumns": "visible" },
{ "sExtends": "csv", "sButtonText": "CSV", "mColumns": "visible", "bFooter": false , "bHeader": false },
{ "sExtends": "xls", "sButtonText": "XLS", "mColumns": "visible", "sTitle": "" },
{ "sExtends": "pdf", "sButtonText": "PDF", "mColumns": "visible", "sNewLine": "auto", "sTitle": "" }
]}
}).columnFilter();
oDataTable.fnSearchHighlighting();
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip'
, "oTableTools": {
"sSwfPath": "../scripts/jquery/js/../swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{ "sExtends": "print", "sButtonText": "Impressão", "mColumns": "visible", "sToolTip": "Impressão",
"sMessage": "",
"sInfo": "<h6>Impressao</h6><p>Por favor utilizar a funcionalidade de impressão do browser para imprimir esta tabela. Pressione ESC (escape) quando terminar." }
, { "sExtends": "copy", "sButtonText": "Clipboard", "mColumns": "visible" },
{ "sExtends": "csv", "sButtonText": "CSV", "mColumns": "visible", "bFooter": false , "bHeader": false },
{ "sExtends": "xls", "sButtonText": "XLS", "mColumns": "visible", "sTitle": "" },
{ "sExtends": "pdf", "sButtonText": "PDF", "mColumns": "visible", "sNewLine": "auto", "sTitle": "" }
]}
} );
} );
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.