table.rows
table.rows
How does one send the values of table.rows to a ajax post method and does the value of table.rows hold the pageintated data
I want to pass the data to .net mvc controller for futher minpulation after the user has typed but its to included the paginated filtered data to is that possible.
```
table.on('search.dt', function() {
//number of filtered rows
console.log(table.rows( { filter : 'applied'} ).nodes().length);
//filtered rows data as arrays
console.log(table.rows( { filter : 'applied'} ).data());
})
Answers
The
selector-modifier
docs provide the options available. Doesn't look likefilter
is correct. Try usingsearch
.Kevin
Does this have it after the user has searched and will it work in 1.9.4?
Depends on when you use
rows()
API. It will take into consideration the filtered rows at the time you userows()
.1.9.4 is different. See the Legacy API docs for more details. Specifically look for the
_
API.Kevin