Custom operator selection

8 posts, 0 answers
  1. OBollmann
    OBollmann avatar
    14 posts
    Member since:
    Jan 2007

    Posted 24 Sep 2010 Link to this post

    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
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 28 Sep 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. OBollmann
    OBollmann avatar
    14 posts
    Member since:
    Jan 2007

    Posted 28 Sep 2010 Link to this post

    Thanks! I voted for this issue!

    Best regards,
    Oliver
  5. Mark
    Mark avatar
    44 posts
    Member since:
    Jun 2009

    Posted 26 Jul 2011 Link to this post

    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
  6. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 27 Jul 2011 Link to this post

    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!

  7. Mark
    Mark avatar
    44 posts
    Member since:
    Jun 2009

    Posted 27 Jul 2011 Link to this post

    Hey Ross,

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

    Thanks,
    Mark
  8. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 27 Jul 2011 Link to this post

    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!

  9. Mark
    Mark avatar
    44 posts
    Member since:
    Jun 2009

    Posted 27 Jul 2011 Link to this post

    Thanks Ross!  I have voted for the issue, and added a comment describing our current requirement (which is basically what this thread is describing).
Back to Top
UI for WPF is Visual Studio 2017 Ready