Infinite ajax loading with cascadePanes=true and serverSide=true

Infinite ajax loading with cascadePanes=true and serverSide=true

r00tk1dr00tk1d Posts: 2Questions: 1Answers: 0

It is. It's even happening in "Editor" trial in the examples. Instead of cascadePanes parameter, viewTotal will do the same. I had updated searchpanes from 1.0.1 and 1.1.1 and both versions did not worked.

The only way I found to stop this is to declare a global variable, set render function to any column that will set it to 0 and to pass "ajax" parameter to DT as function like this:

$.fn.dataTable.pipeline = function ( opts ) {
    // Configuration options
    var conf = $.extend( {
        pages: 5,   // number of pages to cache
        url: '',    // script url
        data: null, // function or object with parameters to send to the server
                    // matching how `ajax.data` works in DataTables
        method: 'GET', // Ajax HTTP method
    }, opts );

    return function ( request, drawCallback, settings ) {
        return $.ajax( {
            "type":     conf.method,
            "url":      conf.url,
            "data":     request,
            "dataType": "json",
            "cache":    false,
            "success":  function ( json ) {
                if(!bRebuildPanes)
                {
                    $('#example').DataTable().searchPanes.rebuildPane();
                    bRebuildPanes = 1;
                }
                drawCallback( json );
            }
        } );
    }
};

The only problem with this is that rebuildPane() has no any effect and there are no any other api for SearchPanes.

This question has an accepted answers - jump to answer

Answers

  • r00tk1dr00tk1d Posts: 2Questions: 1Answers: 0


    There is no problems in code, the example in EDITOR TRIAL with the CASCADE PANES has the same behavior

  • kthorngrenkthorngren Posts: 21,161Questions: 26Answers: 4,921
    Answer ✓

    I believe this thread is asking the same question.

    Kevin

This discussion has been closed.