COPY EXCEL PDF buttons appear at bottom
COPY EXCEL PDF buttons appear at bottom
wasimwani
Posts: 19Questions: 5Answers: 0
When i click the "Save" button COPY EXCEL PDF buttons appear at bottom of screen though all the options work as expected but why are they appearing at bottom of table when they should have been appearing below "Save" button.Here is the screen shot for same . http://postimg.org/image/6hz11zytx/ Here is the code
"tableTools": {
"sRowSelect": "os",
"sSwfPath": "../../../TableTools/swf/copy_csv_xls_pdf.swf",
"aButtons": [
{ "sExtends": "editor_create", "editor": editor },
{ "sExtends": "editor_edit", "editor": editor },
{ "sExtends": "editor_remove", "editor": editor },
{
sExtends: "collection",
sButtonText: "Save",
sButtonClass: "save-collection",
aButtons: [ 'copy', 'xls', 'pdf' ]
},
'print'
]
}
This discussion has been closed.
Answers
Use the "dom" param to determine placing of TableTools buttons.
http://datatables.net/extensions/tabletools/
@tangerine I changed the code but still problem persists
Look at the example again. You need to set up "dom" before you initialise TableTools.
@tangerine Tried the way as shown in example but still same problem
Where is
?
Here is my complete code...I had pasted just a snippet earlier
Oh, I see. Well, in that case I don't know what the problem is. Your dom definition looks ok. Might it be a CSS problem?
I'm not sure what the issue is either. We would need a link to the page so it could be debugged. Certainly looks like a CSS issue.
Allan