Datatable layout getting changed on setting visibility to hidden/visible

Datatable layout getting changed on setting visibility to hidden/visible

adamtarshisadamtarshis Posts: 9Questions: 0Answers: 0
edited January 2013 in General
Hi

I am trying to set the visibility of datatable to hidden/visible based on the user click. The datatable is implemented with pagination, scrolly options. Once i hide the datatable and make it visible, the layout seems to be completely distorted. I can use fnDraw but it is causing issues with fixed column plugin. Any idea on how to implement it.

Thanks.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Can you link to a test case please? If you have it visible before you hide it, does it then work - I think it should.

    Allan
  • adamtarshisadamtarshis Posts: 9Questions: 0Answers: 0
    I have to do little bit of work to put it in test case. To be more clear, datatable header and td are getting aligned properly. Only the pagination numbers appears in top (near the header) and records in the table seems to be overflowing outside the layout. FYI. I have fixed column associated to the table.

    If you are ok, i can attach the screen shot and code.

    Do i need to set the visibility on the div which contains the table or the table itself?

    Thanks.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    A screenshot might be helpful, but really I think I'd need to see a simple test case that demonstrates the issue clearly to be able to address it correctly and quickly :-).

    > Do i need to set the visibility on the div which contains the table or the table itself?

    I'd typically say the container.

    Allan
  • adamtarshisadamtarshis Posts: 9Questions: 0Answers: 0
    Thanks Allan. I will get back to you soon.
This discussion has been closed.