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

DataFilter Default Operator

5 Answers 46 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
WILLIAM
Top achievements
Rank 1
WILLIAM asked on 14 Jul 2012, 04:23 PM
Is it possible to set the default operator to something other than the first one in the list?

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 17 Jul 2012, 01:40 PM
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.

0
Rossen Hristov
Telerik team
answered on 20 Jul 2012, 08:56 AM
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.

0
WILLIAM
Top achievements
Rank 1
answered on 20 Jul 2012, 02:18 PM
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!
0
Rossen Hristov
Telerik team
answered on 23 Jul 2012, 11:56 AM
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.

0
WILLIAM
Top achievements
Rank 1
answered on 31 Jul 2012, 02:23 PM
Thank You!!  I will take a look and let you know.
Tags
DataFilter
Asked by
WILLIAM
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
WILLIAM
Top achievements
Rank 1
Share this question
or