0

Is there a way in Jquery Datatables plugin to not hide rows on small screen? Now it hides the overflowed cells and opens on pressing the button. I'd like to have all data visible initially but can't find such option in docs.

UPD1: Initialization code:

$('.schedule_table').DataTable( {
    responsive: true,
    paging: false,
    bFilter: false,
    bInfo: false,
    aaSorting: [],
    columnDefs: [
        { type: 'title-string', targets: [0, 6] },
        { targets: 7, orderable: false }
    ]
} );

Now it looks like this:

enter image description here

Trying to make it look like this INITIALLY

enter image description here

because I want all data to be visible without need to press the (+) button.

1
  • Please show your DataTables initialization code, markup and/or screenshots. Commented Dec 28, 2015 at 18:17

1 Answer 1

1

Try using the code below after DataTables initialization code to expand all child rows:

$('.schedule_table tbody td:first-child').trigger('click');
Sign up to request clarification or add additional context in comments.

Comments

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.