iDisplayLength doesn't actually seem to do anything

iDisplayLength doesn't actually seem to do anything

rstudnerrstudner Posts: 21Questions: 10Answers: 0

I'm using datatables 1.9.1.

I load data from the server manually, and just set aaData and aoColumnDefs to display stuff how I like.. simple.

if I set iDisplayLength to 1,5,10,12,15,19... doesn't matter.. I get 20 rows on the screen (there happen to be 20 rows in the array).

Is there a general reason that this happens? (again -- not using built in ajax or server-side stuff).

Answers

  • rstudnerrstudner Posts: 21Questions: 10Answers: 0
    aaData: Array[20]
    aaSorting: Array[1]
    aoColumnDefs: Array[7]
    bAutoWidth: false
    bDestroy: true
    bLengthChange: false
    bSort: true
    bSortClasses: false
    bStateSave: true
    fnCookieCallback: function (sName, oData, sExpires, sPath) {
    fnInfoCallback: function (oSettings, iStart, iEnd, iMax, iTotal, sPre) {
    fnStateLoad: function (oSettings) {
    fnStateSave: function (oSettings, oData) {
    iDisplayLength: 5
    oTableTools: Object
    object_name: "entries"
    sCookiePrefix: "portal_datatable_"
    sDom: "<"grid-top"<"grid-help pull-left">lT>rt<"grid-bottom"ip>"
    
This discussion has been closed.