ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: gtwangi on January 07, 2019, 07:12:31 pm

Title: filter options using key-value pair data
Post by: gtwangi on January 07, 2019, 07:12:31 pm
When using KEY-VALUE pair data on filter options as below, inputting keywords in text box on filter popup searches KEY instead of VALUE.
Could I make it find VALUE?

...
filter : {
  crules:[{condition: "equal"}],
  options: [{k1:"AAA"},{k2:"BBB"},{k3:"CCC"}]
}
...
Title: Re: filter options using key-value pair data
Post by: paramvir on January 09, 2019, 11:10:41 am
Yes it can be done by providing mapping between key value pairs by adding format callback to the column.
Title: Re: filter options using key-value pair data
Post by: gtwangi on January 14, 2019, 07:31:14 pm
I tried to add format option on my code, but I couldn't resolve this issue.
Would you please give me a simple example?
Title: Re: filter options using key-value pair data
Post by: paramvir on January 17, 2019, 08:30:41 pm
There are couple of examples on usage of column.format in the demos filter section.

Could you post a jsfiddle/ plnkr of your attempt, that would provide an insight of what you are trying to do.