table.rows

table.rows

novatroop77novatroop77 Posts: 14Questions: 4Answers: 0

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

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794

    The selector-modifier docs provide the options available. Doesn't look like filter is correct. Try using search.

    Kevin

  • novatroop77novatroop77 Posts: 14Questions: 4Answers: 0

    Does this have it after the user has searched and will it work in 1.9.4?

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794

    Does this have it after the user has searched

    Depends on when you use rows() API. It will take into consideration the filtered rows at the time you use rows().

    will it work in 1.9.4

    1.9.4 is different. See the Legacy API docs for more details. Specifically look for the _ API.

    Kevin

Sign In or Register to comment.