SearchPane with child table very slow

SearchPane with child table very slow

rtobbertobbe Posts: 1Questions: 1Answers: 0
edited September 2020 in SearchPanes

Hi.
I have a parent table with child table.
When I click on icon in parent table to display and load data for child table from AJAX it is very slow because an event on SearchPane happen even though it is not related to child table.
How can I avoid event on SearchPane when displaying child table
because it slows down site a lot.

SearchPane works perfect in parent table and is initialized as:

$('#customer_service_table').DataTable({
            dom: "PBfrtip",
            lengthMenu: [
                [10, 25, 50, -1],
                ['10 rows', '25 rows', '50 rows', 'Show all']
            ],
            "iDisplayLength": 25,
            "processing": true,
            "ajax": {
                "url": BASE_URL + 'index.php/customer_service/getCustomerServiceData',
                "type": 'POST'
            },
            "deferRender": true,
            rowId: 'ID',
            searchPanes:{
                columns:[2,3,4,5,6],
            },

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @rtobbe,

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. 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.

    Thanks,
    Sandy

This discussion has been closed.