DataTables + JQuery
DataTables + JQuery
itmeritkapital
Posts: 7Questions: 2Answers: 0
Hi Guys,
I met next problem using DataTables 1.10. If i use DataTables + jquery fadeIn function, i get next
https://cloud.mail.ru/public/8e1841187f87/screen1.jpg[text]
my config is next:
var oTable = j('#portfoliosTable').dataTable( { "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "iDisplayLength": 25, "sPaginationType": "full_numbers", "bJQueryUI": true, "bSort":true, "order": sort, "scrollX": true } );
j('#tableContent').fadeIn(2000);
and i do fadeIn on the row where table is placed
any Idea guys how to fix it ?
link to DataTables live: http://live.datatables.net/dojigasu/1/
I know possibly you saw this question in another branch... but guys, i credited my account, one week passed and no answers...
Thanks in advance
This discussion has been closed.
Answers
You need to use the
columns.adjust()
method when you make your table visible. When it is hidden there is no height or width so the columns in a scrolling table can't be aligned.Allan
Allan thank you for your answer, but i don't see that it works
look at pls
http://live.datatables.net/dojigasu/4/
Thanks
Odd. Not sure what is going wrong there immediately. I'll try to make some time in the next few days to look into it a bit more, but I'm rather busy at the moment so can't promise!
Allan
Pls try to figure out what is wrong as this bug worse all my tables in the project...
Thanks
Alan, did u have any chance to look into the problem?
Thanks a lot in advance!
No sorry. I'm up to my eye-balls at the moment!
Allan
ok i'll wait your answer as i quiet important for my project.
Thanks
Priority support is available if you need this urgently.
Allan
Allan did you have a chance to look at the bug and fix it ?
Thanks in advance
Not yet. I will post back here when I have had a chance to do so.
Allan