Button collection problem in the example
Button collection problem in the example
cifra
Posts: 4Questions: 0Answers: 0
Hi Allan,
in the http://datatables.net/release-datatables/extras/TableTools/collection.html example the Save collection not work, while copy and print work. It is a my problem?
In the http://datatables.net/release-datatables/extras/TableTools/button_text.html all work correctly.
Thanks
in the http://datatables.net/release-datatables/extras/TableTools/collection.html example the Save collection not work, while copy and print work. It is a my problem?
In the http://datatables.net/release-datatables/extras/TableTools/button_text.html all work correctly.
Thanks
This discussion has been closed.
Replies
Allan
I think there is, also, a mistake in the http://datatables.net/release-datatables/extras/TableTools/swf_path.html.
The "sSwfPath": "media/swf/copy_cvs_xls_pdf.swf" should be "sSwfPath": "media/swf/copy_csv_xls_pdf.swf"
I have the same problem and started to debug it a bit.
For me it looks like the problem of calculating the size of dom-elements wich are hidden.
The size and position of the flash containers is allways zero and so there is no clickable area.
Hopefully this helps fixing the bug.
I see if I comment the row "document.body.appendChild( nHidden );" inside the "_fnCollectionConfig" function in the "TableTools.js" it look work correctly.
I believe that the problem is when the "_fnFlashGlue" run if the collection children has been append then it find them and append the flash part but with size equal to zero, instead of if I comment the row the collection children are append only when the collection button is pressed.
Sorry for my english.
For now i'm just going to roll back to the previous version.
I didn't use cifra's fix directly as that results in a lot of 100mS timers being fired until the collection is shown (that's how it worked before, but it seems like a suboptimal approach in retrospect). The change I've put in will cause the buttons to resize correctly when the collection is shown, but without the need for the timer.
Regards,
Allan