Posts

Showing posts with the label datatable

How to set pageLength on jquery datatable with rowspan?

Image
Clash Royale CLAN TAG #URR8PPP How to set pageLength on jquery datatable with rowspan? I have a table with rows that has a variable rowspan like this But I'm trying to set de pageLength parameter depending on the first column rowspan size to get something like this My datatable paramerters so far are: var table = $('#table-comp').DataTable({ language:spanish, columns: [ { name: 'competencia', title: 'Nombre de Competencia', }, { title: 'Grado Indicador', }, { title: 'Sel', } ], data: datos, lengthChange: false, searching: false, pageLength: 6 //<--- Here is my problem. Not always is 6 fixed. paging: true, order: , rowsGroup: [ 'competencia:name' ], }) table.draw(false); Help me please! By clicking "Post Your Answer", you acknowledg...