Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

Answers


Use jquery debatable server side processing tricks, try following code sample

 

//Code sample for server side progress while loading 
$(document).ready(function () {
    $('#sampleTable').DataTable({
        "processing": true,
        "serverSide": true,
        //BS 4 progress bar
        "language": {
            processing: '<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><span class="sr-only">Loading...</span>'
        },
        //sample ajax url
        "ajax": {
 
            url: "cs4u.asmx/GetDTDataSerializedList",
            type: "Post",
            beforeSend: function () {
                // Here, manually add the loading message.
                $('#sampleTable> tbody'). html (
                    '<tr class="odd">' +
                    '<td valign="top" colspan="6" class="dataTables_empty">Loading&hellip;</td>' +
                    '</tr>'
                );
            },
            success: function (res) {
                callback(res);
            }
        }
    }); 

Share your answer


Share as a guest

Please subscribe me to the CodeChef4U.

By creating your new answer, you agree to the privacy policy and terms of service.