show / hide all

show / hide all

mitsmits Posts: 15Questions: 0Answers: 0
edited January 2010 in General
Hello,

I use pagination and "bLengthChange" is true. All it's fine but how can I add button / link / span etc. which show all rows and hide "bLengthChange" and pagination numbers (second click show "bLengthChange" and pagination number)?

Regards
Piotr

Replies

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

    You can 'show all' using the method described in this post: http://datatables.net/forums/comments.php?DiscussionID=1079#Item_2

    And in the event handler for showing/hiding all, you can simply set the style.display property for the elements you want to hide to display:none;. This might help for the selectors: http://datatables.net/styling/ids_classes

    Allan
This discussion has been closed.