0

Refreshing data on the fly causes my table to completely break. Imagine stomping on an empty soda can. Then when the data repopulates it goes back to normal size. I am trying to see if anyone has had similar problems and if so what was your solution?

1 Answer 1

1

The table elements (td, th etc) need to have some fixed width/height/padding/margin settings in the CSS assigned for it. Maybe you should first render your table without any data for testing purposes - empty table. Add min-width or padding or whatever to have the table render the way you want without any data. Once you can do that, then add the data and now if you refresh it, the table may not break any more.

Sign up to request clarification or add additional context in comments.

1 Comment

Ok, I was thinking it was something along those lines, I recently inherated another developers work, so Im trying to sort through known issues to get things fixed, but I have yet to do anything with datatables so, kinda new to it in a manor of speaking, thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.