override the filter descriptor in a radGridView

4 posts, 0 answers
  1. Iheb
    Iheb avatar
    12 posts
    Member since:
    Sep 2012

    Posted 29 Sep 2012 Link to this post

    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.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 29 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. Iheb
    Iheb avatar
    12 posts
    Member since:
    Sep 2012

    Posted 01 Oct 2012 Link to this post

    Hi,

    So can I add my own filter operators ?

    For example:
    descriptorAgence.Operator = FilterOperator.MyCustomTest


  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Oct 2012 Link to this post

    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.

Back to Top