cdeutsch / Mvc.Bootstrap.Datatables

MIT License
6 stars 3 forks source link

DataTablesParam is always null #3

Open thankikaushik opened 8 years ago

thankikaushik commented 8 years ago

I have tried to implement using given library code so that I can have more control. But code throwing error as DataTablesParam is always null. Is there anything related to datatable version ?

I noticed my ajax is submitting following parameter :

columns[0][data]
Year columns[0][name]
columns[0][orderable]
true columns[0][search][regex]
false columns[0][search][value]
columns[0][searchable]
true columns[1][data]
Name columns[1][name]
columns[1][orderable]
true columns[1][search][regex]
false columns[1][search][value]
columns[1][searchable]
true columns[2][data]
columns[2][name]
columns[2][orderable]
false columns[2][search][regex]
false columns[2][search][value]
columns[2][searchable]
true draw
1 length
10 order[0][column]
1 order[0][dir]
desc search[regex]
false search[value]
start
0

douglasfls commented 8 years ago

it's possible you are using a different version of the datatables component. I'd recomend you to try odata instead of using this component. You will get less code and more functionalities :)

http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api