Cant find CurrentFilterFunction property

2 posts, 0 answers
  1. Martijn
    Martijn avatar
    16 posts
    Member since:
    Apr 2007

    Posted 06 Aug 2007 Link to this post

    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?
  2. Dwight
    Dwight avatar
    475 posts

    Posted 06 Aug 2007 Link to this post

    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.
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top