Comparing one column with another

4 posts, 0 answers
  1. Harpreet
    Harpreet avatar
    2 posts
    Member since:
    Jan 2013

    Posted 04 Jan 2013 Link to this post

    Hi,

    I am using the Telerik DataFilter and was trying to compare values of two columns.

    Basically I wanted to:

    [Column1]    is less than [Column2]  - This filter should go through all the row and get only those rows where value of column1 is less than column2, provided here column1 and column2 are of same type(may be int)

    I am getting list of columns by binding DataFilter to a collection. But I was wondering if it is possible to compare the rows in the column.

    If it is possible, can you please point me to some example where this has already been implemented.

    Thanks
    Harpreet
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 07 Jan 2013 Link to this post

    Hello Harpreet,

    Unfortunately this can not be done with the built-in features of the DataFilter. Basically how you can filter with it is shown in the DataFilter WPF Demos and our online documentation.

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Harpreet
    Harpreet avatar
    2 posts
    Member since:
    Jan 2013

    Posted 08 Jan 2013 Link to this post

    Hi Didie,

    Thanks for your reply. If this is not possible, can you help me to modify the right hand column based on operator selected.

    What I want is to used datafilter to store the configuration rather than do filtering.

    I want some handler when the operator is selected rather than OnFilterOperatorsLoading event. I want to change the editor based upon the column and operator selected.

    So in nutshell I want to display all the columns. User selects the operator and on selection I want to load different editor. I want to display my own list in one case and textbox in another based upon the operator.

    Let me know if this is possible.It is urgent.

    Regards,
    Harpreet
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 08 Jan 2013 Link to this post

    Hello,

    You can check this demo and this help article on how to create s custom filter editor. Generally I would suggest you to create your own control to serve the exact scenario you have.

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top