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

override the filter descriptor in a radGridView

3 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Iheb
Top achievements
Rank 1
Iheb asked on 29 Sep 2012, 10:08 AM
Hi,

I have a column in my radGridView. The type of this column is int

I have to check if this value exists in a list of values

FilterDescriptor descriptorAgence = new FilterDescriptor();
descriptorAgence.Member = "Agence_Number";
descriptorAgence.Operator = FilterOperator.IsContainedIn;
descriptorAgence.Value = new int [] {1,2,3,4,5,6,7,8,9};

but an error occur and it told me that contains is not supported. 

Is there a way to bypass this limitation or a way to override the IsContainedIn filterOperator to do this task.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 Sep 2012, 11:21 AM
Hi,

 Indeed you cannot use the "IsContainedIn" operator for Int values. It is applicable to String values only. Please check our online documentation where you can find detailed information on how the filtering mechanism works.

Regards,
Didie
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Iheb
Top achievements
Rank 1
answered on 01 Oct 2012, 02:54 PM
Hi,

So can I add my own filter operators ?

For example:
descriptorAgence.Operator = FilterOperator.MyCustomTest


0
Dimitrina
Telerik team
answered on 01 Oct 2012, 02:58 PM
Hi,

I am afraid that this is not supported for the time being.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Iheb
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Iheb
Top achievements
Rank 1
Share this question
or