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

How to get entire grid data using aoData when using bDeferRender option (client side)

$
0
0
Hi,

I have implemented a separate excel export functionality by using the data from aoData.

Everything works fine if I don't set the bDeferrender option, else only the visible data is getting exported to excel. Can you please let me know the best way to get all the data in the grid if I use bDeferrender option?
$(dTable.fnSettings().aoData).each(function () {
            $(this.nTr).each(function (c) {
                var nTds = $('td', this);
                for (var j = 0; j < nTds.length; j++) {
                    excel.ActiveSheet.Cells(i + 3, j + 1).Value = $(nTds[j]).text();
                }
                i = i + 1;
            });
        });

Thanks,
Barani

Viewing all articles
Browse latest Browse all 82258

Trending Articles



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