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,
I attached a sample below. I misunderstood your question about a type, the Expression needs the type of your data items aka the Row that's actually trying to get rendered. Since you are filtering out the whole thing you need to specify the DataItem and the property type for the column your filtering by.
5635.WpfApplication1.zip
Hi Michael,
No problem if only for one type I can we can use it, can you add an example, for an numeric type?
FilterExpression can only be used for one type at a time, plus it's only possible to assign a single type for a column. Not really sure what else I can suggest.
Hi,
I want to ovvreride the FilteringExpression method.
I have create a new FIlterOperand class:
public class InfilterOperand<T> : FilterOperand - To be generic, to work with strings or numeric values
The method is the following:public override Expression FilteringExpression(object value) { return new Expression<Func<T, bool>>();}And now I thinking about this method, how should Iimplement, while I can have multiple values as in parameter, separated with commas.Or if it easier to create only for one type (string, int), that will not be also a problem.
Okay, where are you at? What issues are you running into?