Author Topic: Modify range values  (Read 1952 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 339
    • View Profile
Modify range values
« on: April 13, 2021, 12:35:57 pm »
Would it be possible to modify values used in range condition? Fetching values remotely from DB.

Have values like 'value a, value b' but would like them to be splitted by comma (,) in the filter menu for range condition, ex:

value a, value b becomes:

- value a
- value b

« Last Edit: April 13, 2021, 12:54:27 pm by queensgambit9 »

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 339
    • View Profile
Re: Modify range values
« Reply #1 on: April 13, 2021, 05:41:09 pm »
Is there a way to do it in callback in the column definition or is the prefered way to do it in the response from ajax call before values are assigned as options?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6005
    • View Profile
Re: Modify range values
« Reply #2 on: April 14, 2021, 11:38:16 am »
[ Only Pro members may read this post. ]
« Last Edit: April 14, 2021, 12:01:19 pm by paramvir »

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 339
    • View Profile
Re: Modify range values
« Reply #3 on: April 14, 2021, 12:24:44 pm »
I fetch filter values to populate range condition from DB (select distinct) to get all values and not only them available in grid. Tried using options but can't get it to work.
Seems to work when modifying the response from ajax call to get header options before assigning them.

Instead of equal condition in Range, I would like to use contain condition. Do I need custom override for this? Is there a sample available in that case?

Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6005
    • View Profile
Re: Modify range values
« Reply #4 on: April 14, 2021, 12:42:17 pm »
[ Only Pro members may read this post. ]

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 339
    • View Profile
Re: Modify range values
« Reply #5 on: April 14, 2021, 12:58:56 pm »
Remote.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6005
    • View Profile
Re: Modify range values
« Reply #6 on: April 14, 2021, 05:10:36 pm »
[ Only Pro members may read this post. ]