ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jplevene on March 26, 2024, 08:49:26 pm

Title: New simple feature requet
Post 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.

Code: [Select]
        //override range compare function.
        conditions: {
            range:{
                //override compare property of range condition.
                compare: (cellData, value, value2, ui) => boolean
            }
        }
Title: Re: New simple feature requet
Post by: paramvir on March 27, 2024, 10:50:35 pm
Fourth argument is actually rowData

Code: [Select]
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.