Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering a table when the search value set on a multiple column is not present in the column #808

Open
enrico28 opened this issue Apr 13, 2021 · 0 comments

Comments

@enrico28
Copy link

Hi,

I'm trying to filter a table programmatically.
First I set the lookup value on a multiple filter column using the setFilterValue () method:
tf.setFilterValue (index, value);
where 'value' is not always present in the column 'index'.

Then filter the table using the filter() method;
tf.filter();

If the value is present in the column, I get all the rows containing the value.
But if the value is not present in the column, I get all the rows of the table,
instead of the message 'No results'.

How can I get the expected result?

col_8: 'multiple',

state: {
   types: ['cookie'],
   filters: true,
   page_number: false,
   page_length: false,
   sort: true,
   columns_visibility: true,
   filters_visibility: false
}

Thanks
Enrico

For usage and support questions, please check out resources below, you might find an answer:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant