≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Can we set the columns after getting data server-side?
Can we set the columns after getting data server-side?
arvinsim
Posts: 20
Questions: 1
Answers: 0
September 2011
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
fbas
Posts: 1,094
Questions: 4
Answers: 0
September 2011
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.
Replies
1) get ajax
2) build your aoColumns / aoColumDefs based on your data
3) alter your based on the data
4) call .dataTable()