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

Append to my table, new data from server-side

$
0
0
Hi !

Thanks for this plugin, it's totally Awesome !
My server is very slow ... And i can't change it.. So when i load the datatable, i must develop an functionalities for append more data to the table after clicking on a button..

i want something like this :

 
                $('#display-more').click(function (e) {
                    // call Ajax and success(data)
                    oTable.fnAddData(data.aaData);
                    oSettings._iDisplayLength = 200; //Example
                }); 

The table already work server-side for clicking "next", "previous" etc...
But When i click to "Display-more" button.. That doesn't work..(If i add oTable.fnAddData(data.aaData); in fnInitComplete, data are added..)
And oTable.fnAddData() call fnServerData and i don't want to call it...

the principale function must append data to the table without clear the table or re-add data already add with the init when i load my page

have you an idea ?

Thanks

Viewing all articles
Browse latest Browse all 82115

Trending Articles



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