Serial Number for serverside processing

Serial Number for serverside processing

sun6174sun6174 Posts: 2Questions: 0Answers: 0
edited September 2012 in General
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.

Replies

  • sun6174sun6174 Posts: 2Questions: 0Answers: 0
    Is there anything i need to do to get the response for this question?
    Its been already more than a day.
    Am i lacking something that need to add with the post?
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    edited September 2012
    There are more than 40 posts a day on the forum, and I have only a limited amount of free time which I can spend answering posts. This is why not all posts can get an answer. If you want to be certain of an answer to your post there is the support option: http://datatables.net/support which also helps ensure the viability of the DataTables project.

    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
This discussion has been closed.