How to add extra (certain) rows to search results?

How to add extra (certain) rows to search results?

dvrdvr Posts: 1Questions: 0Answers: 0
edited February 2012 in General
Since a couple of days I've been using Datatables, and I really love its options and ease of use.

Now, I want something which could be a bit more complicated, hopefully someone can point me in the right direction.

I have a table full of rows, some of which I select (I tag them with the 'row_selected' class).
I also have a search box, with which I'm able to filter my rows.
Now here it comes: when I search for a certain text, my rows are automatically filtered to only show the matching rows. This is the default search behavior. But I want more: I _also_ want to show all the rows I previously selected (so all the rows which have the row_selected class). So after searching, I want to show all of the matching rows AND the rows which I selected previously.
Additionally, if it's possible, I also want to give the extra (previously selected) rows a different (additional) class, so I can show the users that these records differ from the records which are filtered as a result of the search box.

Is this possible, without heavily modifying the Datatables core?
This discussion has been closed.