This is a migrated thread and some comments may be shown as answers.

DataFilter Operator ComboBox

1 Answer 84 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
WILLIAM
Top achievements
Rank 1
WILLIAM asked on 10 Jul 2012, 06:03 PM
We are using the DataFilter in unbound mode to allow users to create filters that will be used to create queries that are sent to the database.  Unfortunately we require operators that are not included with Telerik (IsAnyOf, IsAllOf, IsNotAnyOf, IsNoneOf).

I need one of these options:
  1. before the filter editor is displayed, get a reference to the operator combo.  From there, I should be able to clear the operators and add a list of my own.
  2. before the filter editor is displayed, get a reference to the operator combo make it not visible, and implement a different drop down in the DataTemplate.

I have subscribed to every event I can think of, and I either can't get a reference to the combo box, or I do, but clearing the items and/or making it invisible doesn't work. It seems that I am setting these properties too soon and they are then overridden by your base code.  When I get the reference to the operator combo after the base code has run, so that I my changes are persisted.


1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 11 Jul 2012, 07:11 AM
Hello,

You could subscribe for the FilterOperatorsLoading event where you could control the operators loaded based on the type of the e.ItemPropertyDefinition.

Here is a table with the supported operators for every type:

String
IsEqualTo
IsNotEqualTo
StartsWith
EndsWith
Contains
DoesNotContain
IsContainedIn
IsNotContainedIn

DateTime and all Numeric Types
IsEqualTo
IsNotEqualTo
IsLessThan
IsLessThanOrEqualTo
IsGreaterThan
IsGreaterThanOrEqualTo

Boolean

IsEqualTo
IsNotEqualTo

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataFilter
Asked by
WILLIAM
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or