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

Custom operator selection

7 Answers 134 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
OBollmann
Top achievements
Rank 2
Iron
OBollmann asked on 24 Sep 2010, 10:58 PM
Hi,

is it possible to select available operators for a specific property (type)? I clarify this request: I have some flags enumerations in my business objects. I would like to filter objects by these flags enumerations. If you have a flags enum with following members: First = 1, Second = 2, Third = 4. And you want to filter all objects which have value "Second" set. The default operators for enum types are "Equal" and "Is not equal". But for the flags enumerations the correct questions would be additional "contains" and "not contains". I know how to implement a DropDown with Checkboxes for specific flag selection to make a graphical representation of this question. But how is it possible to add the two more operators "contains" and "not contains" to the list of available operators? And how could I implement user defined code "behind" this operators?

Best regards,
Oliver

7 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Sep 2010, 07:29 AM
Hi OBollmann,

The only way that you could achieve this would be to have a custom filter template (for the whole 3-part thing, i.e. the one with the rounded corners) in addition to a custom filter descriptor, i.e. an IFilterDescriptor implementation. This will allow you to define any UI and provide any view model logic behind this UI.

Unfortunately, RadDataFilter is not mature enough and does not provide this right now. However, we have a similar feature request in our PITS system. Please, vote for it in order to increase its priority.

Let me know what you think after reading the feature description. Will this functionality solve your requirement?

Sincerely yours,
Ross
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
OBollmann
Top achievements
Rank 2
Iron
answered on 28 Sep 2010, 12:16 PM
Thanks! I voted for this issue!

Best regards,
Oliver
0
Mark
Top achievements
Rank 1
answered on 26 Jul 2011, 08:16 PM
Hey Ross,

I too would like the ability to handle Flag attributes in this way.  I would like to vote for this functionality, but cannot find the relevant case in the PITS system.  What search criteria can I use to find it?  Has it been implemented?

Thanks,
Mark
0
Rossen Hristov
Telerik team
answered on 27 Jul 2011, 08:15 AM
Hi Mark,

Here is the link.

Kind regards,
Ross
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 27 Jul 2011, 02:56 PM
Hey Ross,

It looks like this link is dead.  Can you repost?

Thanks,
Mark
0
Rossen Hristov
Telerik team
answered on 27 Jul 2011, 03:02 PM
Hi Mark,

My bad. Try this:

http://www.telerik.com/support/pits.aspx#/public/wpf/3190

Greetings,
Ross
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 27 Jul 2011, 03:22 PM
Thanks Ross!  I have voted for the issue, and added a comment describing our current requirement (which is basically what this thread is describing).
Tags
DataFilter
Asked by
OBollmann
Top achievements
Rank 2
Iron
Answers by
Rossen Hristov
Telerik team
OBollmann
Top achievements
Rank 2
Iron
Mark
Top achievements
Rank 1
Share this question
or