ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: jplevene on March 26, 2024, 08:49:26 pm
-
In the filter in the colModel, for compare, add the ui or rowData parameter so that we can use the rowData, as sometimes a cell is rendered or formatted to include data from other columns or data.
//override range compare function.
conditions: {
range:{
//override compare property of range condition.
compare: (cellData, value, value2, ui) => boolean
}
}
-
Fourth argument is actually rowData
compare: ( cellData, value, value2, rowData )
but defining dependencies between columns multiple times in column.render and filter.compare callbacks is not a good design
It's a good practice to define dependencies between columns at a single place using rowTemplate or column formulas. There are couple of examples for that in the demos section.