Scroll to a certain index
Scroll to a certain index
I am creating a table and having it open more details about the record using:
"fnDrawCallback": function() {
if (num && num != 0)
{
if ($('#'+num).get(0))
{
aData = $('#vm').dataTable().fnGetData( $('#'+num).get(0) );
$('#vm').dataTable().fnOpen( $('#'+num).get(0), fnFormatDetails($('#'+num).get(0), aData[3]), "faqdetails" );
var index = $('#vm').dataTable().fnGetPosition($('#'+num).get(0));
$('#vm').dataTable().fnUpdate("", index, 0, false);
//this.oScroller.fnScrollToRow( index );
num = 0;
}
And it works perfect. But now I want it to scroll to the one I just opened. Anyone have any idea on what to do here?
Thank you in advance!
Rob
"fnDrawCallback": function() {
if (num && num != 0)
{
if ($('#'+num).get(0))
{
aData = $('#vm').dataTable().fnGetData( $('#'+num).get(0) );
$('#vm').dataTable().fnOpen( $('#'+num).get(0), fnFormatDetails($('#'+num).get(0), aData[3]), "faqdetails" );
var index = $('#vm').dataTable().fnGetPosition($('#'+num).get(0));
$('#vm').dataTable().fnUpdate("", index, 0, false);
//this.oScroller.fnScrollToRow( index );
num = 0;
}
And it works perfect. But now I want it to scroll to the one I just opened. Anyone have any idea on what to do here?
Thank you in advance!
Rob
This discussion has been closed.
Replies
Allan