ServerSide Processing Model
ServerSide Processing Model
I am trying to setup Server side Processing following the manual found here (http://datatables.net/manual/server-side) and I have a pretty good understanding of how everything works. I am; however, a little confused on how to setup the model.
Here is what I have currently:
public class jQueryDataTableParamModel : SearchModel
{
public int draw { get; set; }
public int start { get; set; }
public int length { get; set; }
}
The first three parameters that are listed in the manual are easy (See above), but I am wondering how to setup the model so that when the search, order and columns data is passed in, it binds automatically...
This question has an accepted answers - jump to answer
Answers
If you are using .NET then it is normally easier to have the client-side send JSON data in the body of the request - see
ajax.dataSrc
. You can parse the array format that DataTables sends, but it is a bit of a PITA to do so... Slightly frustrating that .NET doesn't support parameters in that style, but so it goes...Allan
Thanks Allan ... Sorry to take so long to post back. I'll check it out and post back if I have any further issues with it.