Bootstrap-table: unfilter table filtered by 'filterBy'

Created on 7 Sep 2016  路  4Comments  路  Source: wenzhixin/bootstrap-table

Hi, can't find a way to reset the filter, i'm using:
$('#btTable').bootstrapTable('filterBy', {cluster:5})
Now I want to unfilter (show all rows), can't find the method
Thank you!

Most helpful comment

$('table').bootstrapTable('filterBy', {}) works fine (see the demo from @thornomad).

All 4 comments

$('#btTable').bootstrapTable('filterBy', {})

@thornomad, $('#btTable').bootstrapTable('filterBy', {}) didn't not work for me. It just cleared the table contents.

The workaround I found is to set filterBy explicitly for initial state of the table. But I tried that only for boolean values, and not sure if that will be helpful for more complex filtering.

I believe that should work, play with it here:

http://jsfiddle.net/e3nk137y/11135/

$('table').bootstrapTable('filterBy', {}) works fine (see the demo from @thornomad).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gadget00 picture gadget00  路  16Comments

iamthestreets picture iamthestreets  路  20Comments

cgountanis picture cgountanis  路  14Comments

sxahmed picture sxahmed  路  19Comments

typo3ua picture typo3ua  路  23Comments