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

Filters don't update table after clicking apply #6

Open
laplasianin opened this issue Dec 15, 2014 · 1 comment
Open

Filters don't update table after clicking apply #6

laplasianin opened this issue Dec 15, 2014 · 1 comment

Comments

@laplasianin
Copy link

Hello! Last version of filters seems broken - it does nothing after clicking on apply button (no errors on console)

http://plnkr.co/edit/XA0kUc?p=preview - your plnkr's you attached to #3 is not working.

http://plnkr.co/edit/JkRMZt?p=preview - this one you attached to #5 works, but if I add pagination (data-pagination="true") - it's not working again

Also examples attached to github repo behave like plnkr 1.

bootstrap-filters look very usefull but I can't use it, could you please investigate this issue.

thx

@laplasianin
Copy link
Author

temporary fixed this by adding filter params manually like this:

$table = $('#clients-table').bootstrapTable(
    {
        queryParams: function(params) {

            var values = $('#filter-bar').bootstrapTableFilter('getData');
            if ( !jQuery.isEmptyObject(values)) {
                params['filter'] = JSON.stringify(values);
            }

            return params;
        }
    }
);

but it looks ugly

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