Datatable performance issue while using with colspan

Datatable performance issue while using with colspan

nirmalpatwanirmalpatwa Posts: 1Questions: 1Answers: 0
edited November 2019 in Free community support

Hello,
I have rowspan and colspan in my table having 1000 columns and 50-100 rows. when i applied datatable on this table it take around 5000 milliseconds. the page is not clickable at that movement. I am using fixed header and fixed column in this scenario and reset everything set as false.

var startTime = Date.now();
    var table  = $('.classTable').DataTable( {
        scrollY:        "500px",
        scrollX:        true,
        scrollCollapse: true,
        fixedColumns:   true,
        fixedHeader:    true,
        bInfo :     false,
        searching:  false,
        bSort:      false,
        paging:         false,
        deferRender:    true,
        initComplete: function() {
        console.log('DT init complete in ', Date.now() - startTime + ' milliseconds.');
          }
    } );

please help me to increase the performance.

Regards
Nirmal

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.