ServerSide Processing Model

ServerSide Processing Model

michaelk46michaelk46 Posts: 7Questions: 3Answers: 1
edited November 2015 in Free community support

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

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin
    Answer ✓

    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

  • michaelk46michaelk46 Posts: 7Questions: 3Answers: 1

    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.

This discussion has been closed.