Is it possible to apply a filter using the absolute values of a column? For instance, can I set it up so that users choose the > filter option, put in a value of 2.0, and have all rows with a value > 2.0 or < -2.0 be displayed?
HI,
I am just following up on this forum thread.
Please let me know if you need further assistance.
Sincerely, Matt Developer Support Engineer
You can't create customer operators, but you can create customer comparison conditions.
Here is help link:
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=InfragisticsWPF4.v10.3~Infragistics.Windows.Controls.LogicalOperator.html
Hi Matt. I'm looking at the example you pointed out, and while I do appreciate being made aware of this technique, I'm not sure it applies to what I'm trying to do. What I want isn't really a custom filter operand, but a custom operator.
Ideally, I want the user to select an operand from the drop down, then choose a filter operator that would apply math.abs() to the values being filtered before they get compared to the operand. Alternatively, I could have the user type the operand as |operand| when they want to filter absolute values. That solution would be less desirable, since it is not the correct way to write the comparison, but I will take what I can get.
Can you tell me if either of those options are possible?
Thanks,
John
HI ,
HI Johntmoran,
In the feature browser there is a sample that shows you how to create a custom filter operand.
Its the XamDataGrid, Record Filterng, custoerm Filter Operand sample.