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

Comparing one column with another

3 Answers 76 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Harpreet
Top achievements
Rank 1
Harpreet asked on 04 Jan 2013, 03:48 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 07 Jan 2013, 09:51 AM
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.

0
Harpreet
Top achievements
Rank 1
answered on 08 Jan 2013, 09:31 AM
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
0
Dimitrina
Telerik team
answered on 08 Jan 2013, 10:05 AM
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.

Tags
DataFilter
Asked by
Harpreet
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Harpreet
Top achievements
Rank 1
Share this question
or