Currently there is no workaround. I will do my best to implement these features for the Latest Internal Build that will be released on the 13th of August.
Here is how I plan to do these two things. I will need your opinion before I start writing the actual code.
Issue ID 2921 - Define a custom filter editor based on the chosen filter operator.
Currently, when the Property combo-box changes its value, the template selector asks you to provide an editor based on the ItemPropertyInfo provided as item parameter of the SelectTemplate method. I will have to create a new class that will hold both the ItemPropertyInfo and the FilterOperator. When the filter-operator combo-box changes it's value, I will request and editor through the template selector as well. In other words -- each time one of the two combo-boxes (Property and Operator) change their value, I will ask for an editor and I will provide both the ItemPropertyInfo and the FilterOperator in some kind of new info class that will aggregate them both. I guess that you will need them both at once in order to decide what editor to return.
How does this sound? Is it reasonable?
Issue ID 2922 - Define available filter operators based on the ItemPropertyInfo.
Here I intend to create a new event called FilterOperatorsLoading. In the event arguments I will provide the Type of the property and a list with the default operators for this particular Type. If you do not do anything in the event handler -- the default operators will just show up like the do now. But since they will be in a List you will have the option to remove some of them based on the Type. On the other hand -- if you try to add a new operator to the list I will throw an exception since this is an Invalid Operation.
How does this sound?
In case you have any ideas about these things, please share them with me, since I would like to gather opinions before I start actually coding.
I am looking forward to hearing from you.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items