Hi Team,
As we saw in the XamDagarid, the control has the In, Not in filter., we wnat to implement the same for the XamGrid control.
We want to create a custom filter (public class IndOperand<T>: FilterOperand), where we must ovverride the FilteringExpression method, can you define the expression what is used for the XamDataGrid?
The class will be generic, while should work for every type of column (same like in the XamDataGird control)
Hello,
You can follow the example in our online documentation to create custom filters. Keep in mind the XamDataGrid is our premier grid that we maintain and support to use in WPF. Therefore it's preferable if you use it because we plan on retiring the XamGrid (TBA).
Hi Michael,
Yes we know that the XamGrid will be removed, we have started the migration also, but until than we have some task what we must do also for the XamGrid, this is one In custom filter.
The link what you have added, I know, but have have asked the FilteringExpression for the InOperator, to create the custom filter.
Are you trying to override InOperator? Did you try creating a custom class that inherits from FilterOperator? You can create a new operator based on InOperator as you wish and then remove the existing one like this:
FilterColumnSettings fcs = this.MyDataGrid.Columns.DataColumns["ProductID"].FilterColumnSettings; fcs.RowFilterOperands.Remove(ComparisonOperator.InOperand);
HI Fernando,
Yes I try to create a new custom operator, and as I see I must override a new expressions.
Okay, where are you at? What issues are you running into?