Can we set the columns after getting data server-side?

Can we set the columns after getting data server-side?

arvinsimarvinsim Posts: 20Questions: 1Answers: 0
edited September 2011 in General
So lets assume that I am getting my data server side.
Is there a way to set the columns AFTER getting the data server-side? What I mean is that the columns are set based on the data I am getting.

Is there a way to do this?

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    there's always a way.

    1) get ajax
    2) build your aoColumns / aoColumDefs based on your data
    3) alter your based on the data
    4) call .dataTable()
This discussion has been closed.