Author Topic: local filtering problem: Uncaught TypeError: this.toolbar is not a function  (Read 2203 times)

nzxgq0

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 25
    • View Profile
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


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
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.

nzxgq0

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 25
    • View Profile
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.