Author Topic: problem filtering integer column  (Read 2183 times)

rallesaid

  • Newbie
  • *
  • Posts: 16
    • View Profile
problem filtering integer column
« on: October 13, 2016, 08:56:15 pm »
I have implemented the filter from the example filter local
http://paramquery.com/pro/demos/filter_local

I add a column with dataType="integer", and when I try to filter with "all fields"or only integer fields and any condition, I received the exception

pqgrid.min.js:423 Uncaught TypeError: a.indexOf is not a function
contain                                 @ pqgrid.min.js:423
c.isMatchCellSingle               @ pqgrid.min.js:425
c.isMatchRow                       @ pqgrid.min.js:426
c.filterLocalData                    @ pqgrid.min.js:427
d._onDataAvailable               @ pqgrid.min.js:315
d.filter                                   @ pqgrid.min.js:311
(anonymous function)          @ jquery-ui.min.js:6
each                                      @ jquery.min.js:2
each                                      @ jquery.min.js:2
e.fn.(anonymous function)   @ jquery-ui.min.js:6
filterhandler                           @ VM1805:23
(anonymous function)          @ pqgrid.min.js:346
dispatch                                @ jquery.min.js:2
u                                           @ jquery.min.js:2

Any idea what it could be?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: problem filtering integer column
« Reply #1 on: October 14, 2016, 10:47:38 am »
String comparison rules likes contain, begin, end can't be applied to numeric fields ( float and integer).