ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on April 12, 2019, 02:12:39 pm
-
Would it be possible to make use of search keywords in filter textbox?, ex contain condition:
term AND term
term OR term
-
Yes you can call filter method.
https://paramquery.com/pro/api#method-filter
condition is passed as mode parameter.
-
Thanks, not sure I understand though. I want the user to be able to set conditions (AND, OR) by using those keywords directly in textbox.
Tried:
filter: { rule: { mode: 'AND' }, crules: [{ condition: 'contain' }]....
but not working...
-
Please ensure the parameters are passed correctly as per the documentation API.
Substitute mode and values by user entered values.
grid.filter({
rules: [
{
dataIndx: 'dataIndx of field',
mode: 'OR',
crules: [
{ condition: 'contain', value: a },
{ condition: 'contain', value: b }
]
}
]
});
-
Thanks, still don't get it right though...would it be possible to see a working demo of this?