Datatable server side problem

Datatable server side problem

paulropaulro Posts: 1Questions: 0Answers: 0

Hi,
I have a problem with datatable. I use it in my mvc c# proj.
All values are passed ok through ajax, but I have some dropdown individual filter column.
I used this:
initComplete: function (data) {
var api = this.api();
api.columns().indexes().flatten().each(function (i)
...
column.data().unique().sort().each(function (d, j) {
//alert(d + " - " + j);
if (d != null && d != "") {
select.append('<option value="' + d + '">' + d + '</option>')
}
});
}
The problem is that when dropdown are created, only first 10 values from rows are put in options. I mention that i have pagination true, with its default first val - 10.
What can I do?
Tnx for help.

This discussion has been closed.