FixedHeader stops working when changing # of rows displayed

FixedHeader stops working when changing # of rows displayed

Michael1Michael1 Posts: 1Questions: 1Answers: 0

I have a length menu to change the number of rows displayed and once a new value is selected the fixed header no longer works. Is there a fix for this?

Here is my code:

    $(document).ready(function(){
        $('#example').DataTable({
            fixedHeader: {
                header: true,
                footer: false,
            },
            lengthMenu: [ [25, 50, 100, -1], [25, 50, 100, "All"] ]                
        });

    });
This discussion has been closed.