ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: nzxgq0 on March 11, 2020, 01:04:31 am

Title: local filtering problem: Uncaught TypeError: this.toolbar is not a function
Post by: nzxgq0 on March 11, 2020, 01:04:31 am
Hello,

I am applying the local filtering to my asp.net razor page by referring to
https://paramquery.com/pro/demos/filter_local

However it reports "Uncaught TypeError: this.toolbar is not a function".
I used a different jquery 1.10.2 than 1.9.1 because there is other javascript files depending on that version.
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>

Any idea?
Thanks in advance.

Hua

Title: Re: local filtering problem: Uncaught TypeError: this.toolbar is not a function
Post by: paramvir on March 11, 2020, 09:25:59 am
For this error, jQuery version doesn't matter, this error could be thrown if the code from that demo is used in pqgrid free version

Please ensure that you are using Pro latest version.
Title: Re: local filtering problem: Uncaught TypeError: this.toolbar is not a function
Post by: nzxgq0 on March 11, 2020, 11:49:43 am
For this error, jQuery version doesn't matter, this error could be thrown if the code from that demo is used in pqgrid free version

Please ensure that you are using Pro latest version.

Thanks. I believe I am using the Pro latest version.

I don't know what happened. I modified the code as below
        var $toolbar = $grid.find('.pq-toolbar'),
        //var $toolbar = this.toolbar(),

        var grid = $grid.pqGrid("instance");
        grid.filter({
        //this.filter({
and it is working now.