Author Topic: PQGrid Filter : type="select" Localization and set default issues.  (Read 248 times)

RamC

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 7
    • View Profile
Hello, we are upgrading from ParamQuery Pro v3.3.0 ParamQuery Pro v9.1.1.
We have observed couple of modifications in new version,
1. Select Filter is displaying key instead of value for selected option. how to get display value instead of key?
2. How to set default option in new version.
3. The key value pair from option is now only accepting constants for key, so because of its localization does not work well.

I have gone through https://paramquery.com/pro/demos/filter_custom

  I have attached screen shots, for more clarity.


Any thoughts?


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: PQGrid Filter : type="select" Localization and set default issues.
« Reply #1 on: May 02, 2024, 12:21:45 pm »
1) You are required to provide only the filter rules which constitutes filter condition and the initial filter value (optional ). rest of the filtering is taken care of by grid in Pro version as shown in the examples. You can check the upgrade guides for more insight.

If you have done any customization, then kindly share relevant code snippet or a jsfiddle.

2) Default or initial filter option is set by filter.value Example: https://paramquery.com/pro/demos/filter_initial

3) Please use localization file for corresponding version only. Localization file for v3 may not work with v9. Kindly share a jsfiddle / stackblitz if still facing issues.

RamC

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: PQGrid Filter : type="select" Localization and set default issues.
« Reply #2 on: May 03, 2024, 06:42:09 pm »
Yes , working now. Added rules to set default filter.

And added key as [key] in option, so localization working now.
sample -
options: [ { [Key1]: value1 }, { [Key2]: value2 }, { [Key3]: value3 }]


Thank You .