Initalizing datatable with filter in place

Initalizing datatable with filter in place

jdbjdb Posts: 9Questions: 0Answers: 0
edited November 2010 in General
Good evening,

I've been working with DataTables for 3 days and have referred to the docs/forums 300 times at least. At some point I swear I read something about initializing a datatable with a filter. I've been searching the site for that reference for almost an hour with no luck finding it. :-(

Could someone point me to the information or enlighten me on how it's accomplished?

Thanks,

Jeffrey

Replies

  • jdbjdb Posts: 9Questions: 0Answers: 0
    edited November 2010
    For now I'm just using an fnFilter once the datatable has completely initalized but this doesn't play well with bSaveState and I end up with my initial filter in place every time.

    Is there another way of loading an initial filter that is state-aware or a way of having fnFilter update the state cookie?
  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    http://datatables.net/usage/options#oSearch is what you are looking for :-)

    Allan
  • jdbjdb Posts: 9Questions: 0Answers: 0
    What's that old saying "I'm glad it wasn't a rattlesnake, it would have bitten me!"

    Thanks Allen!
This discussion has been closed.