editing settings on the fly

editing settings on the fly

talkitivewizardtalkitivewizard Posts: 30Questions: 0Answers: 0
edited January 2010 in General
Is it possible to edit settings such as say sDom or sPaginationType on the fly or is it only possible to set them on instantiation of the object?

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Hi talkitivewizard,

    It's only possible to set these two parameters at initialisation time. You could modify the DOM "manually" if you wanted to once the table had been set up - DataTables wouldn't interfere with that, but it might be a little harder to change the paging type. You'd need to initialise whatever paging style you wanted and then change what DataTables thinks it is. Again possible, but not as easy as a simple function call.

    Regards,
    Allan
This discussion has been closed.