Author Topic: Multiple formats in same column?  (Read 2076 times)

ntoscano

  • Pro OEM
  • Newbie
  • *
  • Posts: 6
    • View Profile
Multiple formats in same column?
« on: November 09, 2016, 05:31:55 am »
Hello, from looking at http://paramquery.com/pro/demos/edit_filter you can set a filter on a column, but is there a way to support multiple filters on the same column?

would it be possible to do something like:
format: (ui) => {
                                var format;
                                for (var x in ui.rowData.ers_cellcls[ui.dataIndx]) {
                                    format = ui.rowData.format;
                                }
                                return format;
                            }

similar to how the render function works?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Multiple formats in same column?
« Reply #1 on: November 09, 2016, 07:00:15 am »
only one filter can be applied to a single column. The way to do multiple matches within a column is to use range, regexp or a callback condition.

http://paramquery.com/pro/api#option-column-filter

An example of range filter condition is here: http://paramquery.com/pro/demos/filter_header_local
« Last Edit: November 10, 2016, 12:19:19 pm by paramquery »