Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2366

Start not with page one

$
0
0

Is it possible, before the table is initialized, to specify with which page number the table is called up? I tried preinit.dt, but there I could only define the length, but not with which side the table is displayed.
Here is my code that I tried with:

var singlels = $( '#singletbl' ).on( 'preInit.dt', function( e, settings ) {
    var api = new $.fn.dataTable.Api( settings );
    api.page( 3 );
  } ).DataTable( {
        language: {
            url: i18n_url
        },
        ajax: {
            url: ajaxurl + '&m_uuid=' + sessionStorage.m_uuid + '&st=1',
            type: 'POST',
            dataSrc: 'content'
        },.....

Andreas


Viewing all articles
Browse latest Browse all 2366

Trending Articles