DataTables + JQuery

DataTables + JQuery

itmeritkapitalitmeritkapital Posts: 7Questions: 2Answers: 0
edited February 2015 in Bug reports

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

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    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

  • itmeritkapitalitmeritkapital Posts: 7Questions: 2Answers: 0

    Allan thank you for your answer, but i don't see that it works

    look at pls

    http://live.datatables.net/dojigasu/4/

    Thanks

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    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

  • itmeritkapitalitmeritkapital Posts: 7Questions: 2Answers: 0

    Pls try to figure out what is wrong as this bug worse all my tables in the project...

    Thanks

  • itmeritkapitalitmeritkapital Posts: 7Questions: 2Answers: 0

    Alan, did u have any chance to look into the problem?

    Thanks a lot in advance!

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    No sorry. I'm up to my eye-balls at the moment!

    Allan

  • itmeritkapitalitmeritkapital Posts: 7Questions: 2Answers: 0

    ok i'll wait your answer as i quiet important for my project.

    Thanks

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Priority support is available if you need this urgently.

    Allan

  • itmeritkapitalitmeritkapital Posts: 7Questions: 2Answers: 0

    Allan did you have a chance to look at the bug and fix it ?

    Thanks in advance

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Not yet. I will post back here when I have had a chance to do so.

    Allan

This discussion has been closed.