scrollTo not working on initial load.
scrollTo not working on initial load.
KShepherd
Posts: 1Questions: 0Answers: 0
I have the following code to initialize the table:
I'm using the Scroller 1.4.0
The on ( 'init.dt' ) event fires correctly, and table.row("#row_" + patientid).select() correctly selects the row, but the scrollTo method does not work.
table = $('#patients').on( 'init.dt', function () {
if (patientid != "") {
table.row("#row_" + patientid).select();
table.row("#row_" + patientid).scrollTo(false);
}
} ).DataTable( {
scrollX: true,
scrollY: 600,
jQueryUI: true,
scroller: true,
pageLength: 50,
dom: 'Bfrtip',
ajax: '../php/table.patients.php',
columns: dataFields,
select: true,
lengthChange: false, /// etc ...
This discussion has been closed.
Replies
I've made this test case showing the issue, it does appear to be a problem that I will need to look into: http://live.datatables.net/lepimucu/1/edit .
Allan