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

fnGetData of visible rows only

$
0
0
Hello everyone. My question might be really simple and already solved, however I couldn't find the solution within the API docs and forum.

Is there an API method to simply retrieve the aoData of the visible rows? (possibly, fnGetVisibleData )



My task is simple: I have a relatively large table (10k rows, 15 cols) and I have some complicated server-side processing of the rows. Therefore I want to retrive data from the currently visible columns and process only them (50 rows). The solution could be as follows:

- fngetNodes is used for the rows that I currently see and then query them in the datatable
- fnFindCellRowIndexes is used based on the retrived tr nodes
- aoData is retrieved based on found row indexes

this could be absolutely fine, but the column with unique values for selection can be hidden by ColVis. and therefore instead of selecting only 50 rows, I can recieve nearly 5000 of them.



So, is there an easier implemented way, or I should make my own indexing variable and embed it into fnRowCallback?

Viewing all articles
Browse latest Browse all 83169

Trending Articles



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