Datatables Styling space before the Length
Datatables Styling space before the Length
amit
Posts: 1Questions: 0Answers: 0
There is a gap on the top of datatables and this occurs when the Table has less columns i suppose based on the behavior
I have used SDOM with
$(document).ready(function () {
$('#GridView1datatable').dataTable({
"bJQueryUI": false,
"aoColumnDefs": [
{ "bSearchable": false, "aTargets": [0] },
{ "bSortable": false, "aTargets": [0] }
],
"sPaginationType": "full_numbers",
"sDom": '<"clear"TClfrtip>',
"oColVis": {
// "aiExclude": [0],
"sAlign": "left",
"bRestore": true,
"sRestore": "original Grid",
"buttonText": "Change columns"
},
"oTableTools": {
"sSwfPath": "../scripts/datatables/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
// {
// "sExtends": "copy",
// "sButtonText": "Copy to clipboard"
// },
{
"sExtends": "csv",
"sButtonText": "Save to CSV"
},
{
"sExtends": "pdf",
"sButtonText": "Save to Pdf"
}
]
}
});
can anyone help on this
I have used SDOM with
$(document).ready(function () {
$('#GridView1datatable').dataTable({
"bJQueryUI": false,
"aoColumnDefs": [
{ "bSearchable": false, "aTargets": [0] },
{ "bSortable": false, "aTargets": [0] }
],
"sPaginationType": "full_numbers",
"sDom": '<"clear"TClfrtip>',
"oColVis": {
// "aiExclude": [0],
"sAlign": "left",
"bRestore": true,
"sRestore": "original Grid",
"buttonText": "Change columns"
},
"oTableTools": {
"sSwfPath": "../scripts/datatables/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
// {
// "sExtends": "copy",
// "sButtonText": "Copy to clipboard"
// },
{
"sExtends": "csv",
"sButtonText": "Save to CSV"
},
{
"sExtends": "pdf",
"sButtonText": "Save to Pdf"
}
]
}
});
can anyone help on this
This discussion has been closed.