ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on October 07, 2016, 02:58:19 pm
-
I would like to apply a value to a filter after initialization. Not the complete filter option, just applying a value.
What would be the best approch?
Tried:
colM[1].filter = {value: "test"}
But can't get it to work.
Thanks.
-
Please use filter method.
http://paramquery.com/pro/api#method-filter
-
Thanks, when I try running:
$( ".selector" ).pqGrid( "filter", {
oper: 'replace',
data: [{ dataIndx: 'column1', condition: 'great', value: 0 }
]
});
I get no error, but no value is inserted?
-
Please substitute ".selector" with actual selector of grid in your case, verify the dataIndx value and the column should be numeric ( float or integer ) for condition: 'great'.
Please share jsfiddle if still facing the issue.
-
http://jsfiddle.net/v7gscjfy/1/
Trying to set query param in url and then set filter depending on value.
I'm sure there is a better way of doing this so please feel free to advise :).
Thanks.
-
As mentioned in my previous post, please substitute ".selector" with actual selector of grid in your case.
And use refreshHeader to show the value in header filter row, when filter method is used.
http://jsfiddle.net/v7gscjfy/3/