Jquery datatable features shows in delay

628
November 23, 2016, at 9:35 PM

I am using datatable ver. 1.10.9.

The datatable drop-down and other features of data-table plug-in shows after the table is shown and it doesn't look good that way.

What can I do in such situation?

Answer 1

what I did is hiding the table and when all the page is loaded show it.

Like that:

CSS file:

#dt{ display:none }

in the js file i call on callback function

 $(document).ready(function () {
        var dt = $('#dt').DataTable({
            "fnDrawCallback": function () {
                $(this).show();
            }
        });
    });
READ ALSO
Emptying and adding new items in the list in jquery

Emptying and adding new items in the list in jquery

I've an jquery mobile list with some list items. I simply want to remove old items and add new items in it dynamically.

569
How to access AngularJS {{curly-brace-value}} in jQuery

How to access AngularJS {{curly-brace-value}} in jQuery

From the question itself, I am sure you understand that I am not an angular/jquery expert. .

541
jQuery add target = _blank to all links that have a specific class

jQuery add target = _blank to all links that have a specific class

I am trying to add attribute target =_blank to all links that have specific classes. Example:.

519
Closing conditionally a bootstrap modal panel if login is succesful

Closing conditionally a bootstrap modal panel if login is succesful

I'm building a SPA webapp integrating reactjs with jquery, I have a component to control the authentication. It is rendering a modal panel with username and password.

487