My datafilter displays the IsNull and IsNotNull operator for anything defined as a type = string. My users would like these to show up under the operator drop down when they selected a value that is defined as a int32.
I found this in telerik documentation and it looks like these should appear for any filter type:
When choosing the Operator, you have to make sure that the respective MemberType supports this operator. For example, you cannot use the Contains operator if your MemberType is Int32 because the data engine will crash. Here is a table of filter operators and the types that support them.
Filter Operators and Types Supporting Them
Operators Types
IsEqualTo, IsNotEqualTo All filterable types
StartsWith, EndsWith, Contains, DoesNotContain, IsContainedIn, IsNotContainedIn, IsEmpty, IsNotEmpty String
IsLessThan, IsLessThanOrEqualTo, IsGreaterThan, IsGreaterThanOrEqualTo Numeric types, DateTime, TimeSpan, all types
that overload these .Net operators
IsNull, IsNotNull All filterable types
I noticed that in the telerik demos for datafilter the IsNull and IsNotNull operators only show for strings. Is it possible to add these to the operator dropdown for anything defined as a numeric value?
Thanks,
Lori
I found this in telerik documentation and it looks like these should appear for any filter type:
When choosing the Operator, you have to make sure that the respective MemberType supports this operator. For example, you cannot use the Contains operator if your MemberType is Int32 because the data engine will crash. Here is a table of filter operators and the types that support them.
Filter Operators and Types Supporting Them
Operators Types
IsEqualTo, IsNotEqualTo All filterable types
StartsWith, EndsWith, Contains, DoesNotContain, IsContainedIn, IsNotContainedIn, IsEmpty, IsNotEmpty String
IsLessThan, IsLessThanOrEqualTo, IsGreaterThan, IsGreaterThanOrEqualTo Numeric types, DateTime, TimeSpan, all types
that overload these .Net operators
IsNull, IsNotNull All filterable types
I noticed that in the telerik demos for datafilter the IsNull and IsNotNull operators only show for strings. Is it possible to add these to the operator dropdown for anything defined as a numeric value?
Thanks,
Lori