Author Topic: Render function  (Read 2366 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Render function
« on: February 21, 2018, 02:01:45 pm »
When using the render function to build column data (there is no actual data for it (no dataIndx), uses logic from other columns to build up data).
Would it be possible being able to filter on rendered data?, export works fine through column.exportRender...but can't filter the data...
« Last Edit: February 21, 2018, 02:06:37 pm by queensgambit9 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Render function
« Reply #1 on: February 21, 2018, 05:37:06 pm »
formula should be used instead of column.render to build column data.

Example: Profits column data is built from Total ( also a formula column ) and Expenditure. https://paramquery.com/pro/demos/grid_formula

filtering, sorting and export works on formula data.
« Last Edit: February 21, 2018, 05:43:52 pm by paramquery »

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: Render function
« Reply #2 on: February 22, 2018, 02:48:32 am »
Thanks.
I experience a little slower performance when filtering formula columns, is it expected behaviour?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Render function
« Reply #3 on: February 22, 2018, 10:06:51 am »
There shouldn't be much difference.

Please optimize your formula function for performance. Kindly share formula function or jsfiddle if you need any help with that.