ScrollY crashes with sDom

ScrollY crashes with sDom

riceirolvericeirolve Posts: 10Questions: 3Answers: 1

im having problem to use both at same time
if i just put "scrollY": "500px" it works perfectly, but when i use "sDom": '<"#paginacao-right"p><"#paginacao-center"l><"#paginacao-left"i>' then scrollY crash (but the sDom works with or without scrollY)

code:

$(document).ready(function() {
$('#example').DataTable( {
"scrollY": "500px",
"sDom": '<"#paginacao-right"p><"#paginacao-center"l><"#paginacao-left"i>'
} );
} );

Answers

  • allanallan Posts: 62,316Questions: 1Answers: 10,226 Site admin

    Can you link to a test case showing the issue, per the forum rules please.

    Allan

  • riceirolvericeirolve Posts: 10Questions: 3Answers: 1

    allan, sorry for yesterday, i was tired.
    i woke up today rested and maked a lot of tests and found my error:
    when i dont put "t" on "dom": 'lrtip' (like "dom": 'lrip') then ScrollY doesnt work

    its just that and i im not sure if is datatables problem, i think was my mistake

  • allanallan Posts: 62,316Questions: 1Answers: 10,226 Site admin

    The t option is required - it is the table :-).

    I should perhaps put an error catch in for that state...

    Allan

This discussion has been closed.