Change bSortable on callback

Change bSortable on callback

tjeerdkramertjeerdkramer Posts: 2Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
I am trying to change the "bSortable" attribute of a specific column after the data is being received from the server, based on iTotalDisplayRecords > 100000.

Is there some way to do it?

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    No - this is an initialisation parameter and cannot be changed after the table is initialised - sorry.

    Allan
  • tjeerdkramertjeerdkramer Posts: 2Questions: 0Answers: 0
    Ok, thanks for the reply.

    I am trying to prevent certain columns from being sortable if there are too many results, since a sorting request would take too long to process.

    Is there some way around this? Re-initialisation?
This discussion has been closed.