fnGetPosition doesn't work when using the datatable scroller?
fnGetPosition doesn't work when using the datatable scroller?
lynne
Posts: 3Questions: 0Answers: 0
Hi,
I'm using the datatable 1.9 with the scroller. I need to be able to scroll to a specified row, but I cannot figure out how to get the row index of the row that I want to scroll to, when viewing rows numbered a couple hundred or above.
I've tried using fnGetPosition, but since I'm using the scroller, it returns the physical index of the row (i.e. for row 2,000, it returns an index between 0 and 188. I'm assuming this is the index to the subset of rows currently being drawn in the datatable.
I cannot save/use the iDisplayIndex and iDisplayIndexFull values that are sent to the fnRowCallback function are between 0 and 188.
I tried using calling fnPixelToRow(row.offsetTop), but again, the index returned is between 0 and 188.
I apologize if I'm missing something obvious... i'm new to using the datatable and scroller
Thanks,
Lynne
I'm using the datatable 1.9 with the scroller. I need to be able to scroll to a specified row, but I cannot figure out how to get the row index of the row that I want to scroll to, when viewing rows numbered a couple hundred or above.
I've tried using fnGetPosition, but since I'm using the scroller, it returns the physical index of the row (i.e. for row 2,000, it returns an index between 0 and 188. I'm assuming this is the index to the subset of rows currently being drawn in the datatable.
I cannot save/use the iDisplayIndex and iDisplayIndexFull values that are sent to the fnRowCallback function are between 0 and 188.
I tried using calling fnPixelToRow(row.offsetTop), but again, the index returned is between 0 and 188.
I apologize if I'm missing something obvious... i'm new to using the datatable and scroller
Thanks,
Lynne
This discussion has been closed.