ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: sibe on January 28, 2016, 01:46:58 pm

Title: Lost value in select filter when options have multiple spaces
Post by: sibe on January 28, 2016, 01:46:58 pm
I have string columns with select filter:
filter: {
                    type: 'select',
                    condition: function(a, b){
                        if( a.replace( /\s/g, '' ) == b.replace( /\s/g, '' ) ){
                            return true;
                        }
                    },
                    prepend: {'': '-- Select --'},
                    valueIndx: "ContractTypeName",
                    labelIndx: "ContractTypeName",
                    listeners: ['change']
                }

When I select one option or refesh grid, this works fine. But this lost data in select when select next page:
(https://lh3.googleusercontent.com/3KVaR9-mt5HWJI6c7UUop-QQ6ebAqJeYmTrVwC4gkuHQl_LryEtyXVM7ySWwlRZ5gm9rp8ypKjP1dKxfDLzBj4SFQdNBZMxKVtUocMSUVv22__HVkyRkyN_9CEbJHrkPoFzsu6cAdzEakyGOri16VF49Q1TtR1PGH3YKi5O4dJm8tNilzEu6FSZRQ3kUQnO8meZHlXwzyoaI8rr9OFQW7tApwgIkQ4gBFRlNbnEUx0mxjQMhMLqg3wjdFgxVR3AqYDcxfVcwIcMidNTLYByV4LSD0TtaO6XEw8lZp3zqL7RbJ4HUBzMw42mWYhoieKjmyC-bwauHWDFwpdW1u6xxsz2faVMXlxAHLhRuMl1VlX2p1Srlt07cIeOR17Jw9AYrNVwByZYZkhdcSU8NN2_-ajkoOSVijd3tdbq7JslbUbCVaAfxjC2qjP9Ig44aS7k5_UD5uRZzgFfbQQlSNYLS8QIN9QMJjwLylL6_wBjBDOF0g1SjGJKLVVw3xnWV_GIODfVxPhjYzWyw4Q5WH2dmoonJx4y-UvQLTOh_0unULTo0IzccAaCoPDs6PqkiAyQvP3s=w844-h148-no)

Title: Re: Lost value in select filter when options have multiple spaces
Post by: paramvir on January 29, 2016, 08:35:17 am
Can you please share a jsfiddle.
Title: Re: Lost value in select filter when options have multiple spaces
Post by: sibe on January 29, 2016, 10:03:52 am
I just shared in jsfiddle:

http://jsfiddle.net/9hzbsoe3/5/ (http://jsfiddle.net/9hzbsoe3/5/)
Title: Re: Lost value in select filter when options have multiple spaces
Post by: paramvir on February 01, 2016, 11:42:20 am
I can't see the mentioned issue in the fiddle, when I choose an option in the dropdown all the results are displayed on single page.

Also Your fiddle is created by using Pro v2.4.x files, please point them to files for basic version.

http://paramquery.com/Content/css/pqgrid.min.css

http://paramquery.com/Content/js/pqgrid.min.js