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

[Solved] Several values for the same field (OR condition)

3 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Evgeny
Top achievements
Rank 1
Evgeny asked on 02 Feb 2011, 09:53 AM
I have status field that can be of the following values:
1 - draft, 2 - sent, 3 - error
How can I get filtered list of fields with 1&3 values?

f.e.:
docid|status
1 | 2
2 | 1
3 | 2
4 | 3

filter:
.Filterable(filtering => filtering.Filters(filters => {
    filters.Add(o => o.Status).IsEqualTo(1).Or().IsEqualTo(3);
}}

result:
docid|status
2 | 1
4 | 3

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Feb 2011, 01:04 PM
Hello Evgeny,

 Currently this is not supported and I am afraid there is no workaround. I have logged this for further consideration by the team. You telerik points have been updated.

Regards,
Atanas Korchev
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
Cory Deppen
Top achievements
Rank 1
answered on 16 Aug 2011, 09:12 PM
Has the Or() operator been evaluated by the team yet? I think many would agree this would be a valuable addition to the existing grid filtering abilities.

Seems it should be possible since this works when added to the URL:

grid-filter=(Id~eq~123)~or~(Id~eq~456)
0
Atanas Korchev
Telerik team
answered on 17 Aug 2011, 07:36 AM
Hi Cory Deppen,

 You can cast your vote for the feature request.

Regards,
Atanas Korchev
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

Tags
Grid
Asked by
Evgeny
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Cory Deppen
Top achievements
Rank 1
Share this question
or