Exclude First TR from filtering and sorting

Exclude First TR from filtering and sorting

x3r0x3r0 Posts: 2Questions: 1Answers: 0

Hi there.

I would like to exclude the first row of my table which is in tbody from sorting and filtering.

I have tried this method,

Thanks in advance, I'm new to using DataTables. (I'm porting an existing website to a new one using laravel)

Answers

  • x3r0x3r0 Posts: 2Questions: 1Answers: 0

    the "this method" doesn't work.... also not sure what to do as documentation doesn't give any help (i looked through it, perhaps I just missed it)

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    You can use the Absolute plugin for the ordering. To prevent it from being filtered, you'll need to create a custom search plugin, where that row will always be returned regardless of the search criteria.

    Colin

This discussion has been closed.