0

Please check the following and jsfiddle

$(document).ready(function () {
        $('#ControllersDataTable').dataTable({
            "scrollY": "200px",
            "paging": false
        });
    });

JSFiddle Link

data table headers are not aligned on resize. Can anyone solve this?

1
  • Is anyone out can help me? Commented Aug 22, 2014 at 11:29

1 Answer 1

2

It is working now on resize, check the fiddle here: http://jsfiddle.net/b1yehpcv/6/

You need to use iDisplayLength, see here:

$(document).ready(function () {
    $('#ControllersDataTable').dataTable({
        "iDisplayLength": 5
    });
});
Sign up to request clarification or add additional context in comments.

2 Comments

I don't want paging, your answer added paging and also removed scrolling
Waiting for your reply

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.