DataFilter Default Operator

6 posts, 0 answers
  1. WILLIAM
    WILLIAM avatar
    134 posts
    Member since:
    Jun 2012

    Posted 14 Jul 2012 Link to this post

    Is it possible to set the default operator to something other than the first one in the list?
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 17 Jul 2012 Link to this post

    Hi,

    Currently, this is not possible, but we will think about how this can be implemented for an upcoming version. I will let you know when we have more information to share.

    Regards,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 20 Jul 2012 Link to this post

    Hello,

    We have some questions regarding the behavior that you expect.

    Imagine that you have a class Person with two properties FirstName and LastName. Imagine you were able to set the default operato, let's say to EndsWith.

    Now, you create a new filter condition which initially looks like this: FirstName EndsWith <Unset>. You then change the operator by hand to StartsWith, i.e. you have manually touched it through the UI. You then go and change the Member to LastName. Do you expect the operator that you last selected, i.e. StartsWith to be kept, or do you expect the default operator of EndsWith to replace the one that you have chosen manually.

    Since there are hundreds of ways that we can implement this and we do not know our customers' expectation, we are trying to learn that is the behavior that you would expect. Any insights on this matter will help us implement this feature in the exact way that you expect.

    Thanks in advance.

    Greetings,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. WILLIAM
    WILLIAM avatar
    134 posts
    Member since:
    Jun 2012

    Posted 20 Jul 2012 Link to this post

    In our specific business case the default operator would be configured on a field by field basis.  Using your example of class Person...

    The default operator for FirstName is StartsWith
    The default operator for LastName is EndsWith.

    When a new filter condition is initially created, the operator should be set accordingly.  If no default operator is specified, then the first in the list.  

    If In that same filter condition (FirstName is currently chosen) and then LastName is chosen from list of fields, the default operator should change from whatever it is to EndsWith.

    Basically, when you select FirstName from the list, the operator is always set to StartWith; when you select LastName the operator is always set to EndsWith

    Thanks for your help!
  6. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 23 Jul 2012 Link to this post

    Hello,

    I have implemented the feature. It will not make it for the upcoming Service Pack, but will be available with our next "Latest Internal Build" version next Monday. Let me know if it is working as you expect once you are able to give it a spin.

    Kind regards,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. WILLIAM
    WILLIAM avatar
    134 posts
    Member since:
    Jun 2012

    Posted 31 Jul 2012 Link to this post

    Thank You!!  I will take a look and let you know.
Back to Top
DevCraft banner