How to increase default datatable_length to all and print button in a same page?
How to increase default datatable_length to all and print button in a same page?
brittalpana
Posts: 8Questions: 2Answers: 0
How to increase default datatable_length to all and print button in a same page?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
pageLength
and set it to -1.Allan
thank you. But two option is not working at the same time. (Print button and datatable_length)Can you please check, is there any error in my above code?
Why are you initialising the same DataTable twice? Why not just do it once?
The code above creates a DataTable with TableTools, then destroys it and replaces it with a DataTable that doesn't use TableTools. I don't see why you would want to do that.
Allan
How can I use print button and datatable_length for the same table? Only one is working for me. Can you please give an example.
What is wrong with Allan's answer?
Nothing but I am requesting him to give an example code for using print button and datatable_length to all at the same time. I can not understand how to use print button code and datatable_length code in a same function. As a result I requesting him to give an code example that how can I use these two code in a same function. I am novice one. Please help me.
I'm not entirely sure what the problem is with just combining the two. You already have multiple parameters in each of your initialisations.
Allan
Thank you very much