Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82400

Improve datatables display of data

$
0
0

Hello, I'd like to know if there are solutions to improve the displaying time of data. I've checked out this post but it does not really change anything to my current loading time.

Here's my code :

currentAuditTable = $('#auditTable').DataTable({
        responsive: false,
        ajax: {
            "url": restURI + 'orch/search/audit/'+encodeURI(auditFlowId)+'/'+encodeURI(auditEventId),
            "contentType": "application/json",
            "type": "GET",
            "data": null,
            "error": function(jqXHR, textStatus, errorThrown){
                if (globalVars.unloaded) {
                    return;
                }
                manageAjaxError(jqXHR, textStatus, errorThrown)
            }
        },
        order: [3, 'desc'],
        pageLength: 50,
        autoWidth: true,
        deferRender: true,
        columns: [
            {"data": "EVENT_ID", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "5%"},
            {"data": "OPERATION_NAME", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "10%"},
            {"data": "OPERATION_STATUS", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "10%"},
            {"data": "CREATE_DATE", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "10%"},
            {"data": "OPERATION_MESSAGE", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "25%"},
            {"data": "OPERATION_DATA", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "25%"}
        ]
    });

I would appreciate any help because I'm stuck right now. Thank you !


Viewing all articles
Browse latest Browse all 82400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>