Serial Number for serverside processing
Serial Number for serverside processing
Hi,
First of all, thanks for this nice datatables. I am just at an initial stage in using this one.
How can i set a serial number for a column for server side processing.
Actually i am getting data like this in each array in aadata, ["13","13","Joed"].
I am rendering first column with a checkbox by using fnRender.
But i just need second column as the serial number as i don't want the id to get displayed.
However, http://datatables.net/examples/api/counter_column.html is just for client side.
If i use the above one in my server side processing, i am getting serial numbers, first time the page loads. But when i click next button, i am getting my ids in my second column.
if ( oSettings.bSorted || oSettings.bFiltered ) is not passing when i am clicking next or previous.
I am just new in understanding this datatables.
Thanks fot any help.
First of all, thanks for this nice datatables. I am just at an initial stage in using this one.
How can i set a serial number for a column for server side processing.
Actually i am getting data like this in each array in aadata, ["13","13","Joed"].
I am rendering first column with a checkbox by using fnRender.
But i just need second column as the serial number as i don't want the id to get displayed.
However, http://datatables.net/examples/api/counter_column.html is just for client side.
If i use the above one in my server side processing, i am getting serial numbers, first time the page loads. But when i click next button, i am getting my ids in my second column.
if ( oSettings.bSorted || oSettings.bFiltered ) is not passing when i am clicking next or previous.
I am just new in understanding this datatables.
Thanks fot any help.
This discussion has been closed.
Replies
Its been already more than a day.
Am i lacking something that need to add with the post?
In answer to your question, I would suggest using objects for your data - see http://datatables.net/blog/Extended_data_source_options_with_DataTables . Or possibly I've misunderstood the question and you need to use fnDrawCallback to get the data.
Allan