ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: biswajit on April 26, 2016, 03:53:41 pm

Title: local filter for multiple column
Post by: biswajit on April 26, 2016, 03:53:41 pm
Hi
I need multiple filter for local on a button click not in header . so I write this code for single column on a button click and it is working
var f1=['4004','4003'];
$("#propertygrid").pqGrid( "filter", {
                            oper: 'replace',
                            data: [
                                  { dataIndx: 'ID', condition: 'range', value: f1 }
                            ]
                        });
but when I want to apply this for multiple column then the following code is not working
var f2=['test4_address','Souvik_share_property'];
var f1=['4004','4003'];
$("#propertygrid").pqGrid( "filter", {
                            oper: 'replace',
             on: true,
                            mode : "OR",
                            data: [
                               
                                { dataIndx: 'ID', condition: 'range', value: f1 },

                               { dataIndx: 'Address', condition: 'range', value: f2},
                            ]
                        });

Please help me.