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

Cant find CurrentFilterFunction property

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martijn
Top achievements
Rank 1
Martijn asked on 06 Aug 2007, 02:39 PM
I want to define the default filter to 'Contains' but I cant find this property. Cause I bind the data to the grid by code I would like to set this property by code also.


Where can i find the property?

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 06 Aug 2007, 04:13 PM
Hello martijntijn,

The grid's API has been refactored a bit in the latest version, sorry if this caused you any inconvenience.

To reach the filtering functionality, please use the following code:
 
GridViewDataColumn column = radGridView1.MasterGridViewTemplate.Columns["my_column"as GridViewDataColumn; 
 
column.Filter.Function = GridKnownFunction.Contains; 
column.Filter.StringValue = "my value"

Please, let us know if you have any other questions.
 
 
Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Martijn
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or