Author Topic: Lost value in select filter when options have multiple spaces  (Read 2814 times)

sibe

  • Newbie
  • *
  • Posts: 2
    • View Profile
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:



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Lost value in select filter when options have multiple spaces
« Reply #1 on: January 29, 2016, 08:35:17 am »
Can you please share a jsfiddle.

sibe

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Lost value in select filter when options have multiple spaces
« Reply #2 on: January 29, 2016, 10:03:52 am »
I just shared in jsfiddle:

http://jsfiddle.net/9hzbsoe3/5/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Lost value in select filter when options have multiple spaces
« Reply #3 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