• Add “ALL” option in dropdown filter of datatables.net

    by  • September 24, 2014 • Blog • 4 Comments

    When working with datatables.net in Bootstrap framework, my customer require me an “All” option to show all of records in table. It doesn’t show default in datatables and we need to do with a small tips.Screen Shot 2014-09-25 at 6.56.19 AM

    Here is the simple tips for you to display “All” option in dropdown filter like the screenshot above:

    You see the key is “-1” what will show all of records in table for you. It ‘s quite simple but it will take your time if you don’t know and this tutorial I hope it will save you a little time.

    Thanks and welcome any comment!

    Reference: http://datatables.net/

    4 Responses to Add “ALL” option in dropdown filter of datatables.net

    1. Jenny
      September 29, 2014 at 1:10 am

      It doesn’t work for me, I am not sure what wrong with it???

      • October 22, 2014 at 1:05 am

        Jenny, can you send me the URL of your site?

    2. Jenny
      December 4, 2014 at 2:50 pm

      I sent you the URL, thanks for your time

    3. Kassie
      August 29, 2016 at 5:44 pm

      Is it possible to have both a search and drop down filter working together like link below?

    Leave a Reply

    Your email address will not be published. Required fields are marked *