Pre process the data while using the server method
Pre process the data while using the server method
oren
Posts: 3Questions: 0Answers: 0
Hi,
Is there a way to get the data from the server as RAW json and process it on the client side before dataTables uses it?
By processing i mean - adding the extra nessesary data like sEcho,DT_RowId,DT_RowClass and avoiding extra looping in the server side in order to add this data to the db recordset.
Thanks
Is there a way to get the data from the server as RAW json and process it on the client side before dataTables uses it?
By processing i mean - adding the extra nessesary data like sEcho,DT_RowId,DT_RowClass and avoiding extra looping in the server side in order to add this data to the db recordset.
Thanks
This discussion has been closed.
Replies
fnServerData is easier to get started with :-).
> sEcho
This suggests that you are going to be using server-side processing. If that is the case you will need to know the number of records in the record set both filtered and unfilled. Does your JSON return give you that information. Also sEcho is important due to the asynchronous nature of Ajax to ensure that overlapping responses are processed in the correct order - which might be a little challenge without that information!
> adding the extra nessesary data like sEcho,DT_RowId,DT_RowClass
I should also say that non of these parameters are required (sEcho is if using server-side processing, but not for client-side).
Allan
BTW, this is the best third party component i ever worked with.
Allan