Loading data message on reload

Loading data message on reload

montoyammontoyam Posts: 441Questions: 106Answers: 5

from what I can see, the "Loading data" message only works on initial load: https://datatables.net/reference/option/language.loadingRecords

Is there a way to do this when you do an ajax reload?

        $("#resultType").change(function () {
            resultTypeID = $("#resultType option:selected").attr('value');
            BillableItemsTable.ajax.url('api/SDPlus_BillableItems?resultType=' + resultTypeID).load();
            BillableItemsTable.searchPanes.rebuildPane(); 
            switch (resultTypeID) {
                case 0:
                    //add Post button
                    break;
                case 1:
                    //remove buttons
                    break;
                case 2:
                    //add repost button
                    break;
            }
        });

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 12,098Questions: 0Answers: 2,054
    Answer ✓

    You should see it on any load - see example here. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.

    Cheers,

    Colin

  • montoyammontoyam Posts: 441Questions: 106Answers: 5

    oh, I have never seen the option:

    processing: true
    

    That was easy :) Thanks.

Sign In or Register to comment.