Table ignoring sDom property? (1.4.3)
Table ignoring sDom property? (1.4.3)
a.quackenbos
Posts: 4Questions: 0Answers: 0
I'm using DataTable's built in sDOM property to lay out the table. However, the table seems to be ignoring it somehow, and laying out the divs in a different order. It acknowledges the position of elements I assign, but is re-aligning the divs to a seemingly preset pattern.
initiation call:
'sDom': '<"tableHolder"t><"options"flip><"clear">'
Output:
(table)
(the rest as expected).
Can the table not be the first element? My only other options set are some language overrides and bSortClasses: false.
initiation call:
'sDom': '<"tableHolder"t><"options"flip><"clear">'
Output:
(table)
(the rest as expected).
Can the table not be the first element? My only other options set are some language overrides and bSortClasses: false.
This discussion has been closed.
Replies
Interesting one - could it simply be a CSS issue? If you have a look at the live DOM (using Firebug / Webkit's Inspector etc) does the DOM look like you would expect from the sDom parameter? Certainly what you are trying to do should work!
Regards,
Allan
It turns out another developer had written a conflicting function that was overriding some of the properties -- of course committed without commenting on anything within it. Sorry for giving you an unsolvable question ^^ but thanks for the response.
No problem - good to hear that it all worked out in the end :-)
Allan