Documentation

eachRow

iterates over all rows in the table

void eachRow(function handler, [boolean all] );

Parameters

handlerfunctionthe handler function
allbooleanif true, hidden rows are included into a loop

Example

dtable.eachRow( 
    function (row){ 
        console.log( dtable.getItem(row).title )
    }
)

Details
  • The loop variable i is the row id.
  • Basically, the order of iteration is the order that rows were added to the table but not necessarily so.
  • If the table loads data dynamically - just already parsed rows will be iterated.
  • If you apply filtering to the table, all rows will be iterated, doesn't matter they meet filtering criteria or not.
Back to top