2

I am using JQuery DataTable and I want to dynamically change the settings (ideally WITHOUT having to delete/recreate the table). Is there a way to rebind the table or is that not possible?

I have provided a live demo HERE.

In my current example, I only want to change the sPaginationType setting. My goal is to do the following:


BEFORE

Before the clicking 'Change Type'



AFTER

Before the clicking 'Change Type'

Can anyone help?

1 Answer 1

4

I wanted to change iDisplayLength and found the answer here. I wrote

oTable.fnSettings()._iDisplayLength = 100;
oTable.fnDraw(false);

Maybe you'll have to look through all settings to find your property.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.