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

How to get Member, Operator and Value from Filter events

3 Answers 187 Views
GridView
This is a migrated thread and some comments may be shown as answers.
azhar
Top achievements
Rank 1
azhar asked on 26 Dec 2010, 08:57 AM
Hi Telerik Team,
        Almost in all of your examples of Filtering concepts I found, you directly given the Member, Operator and Value for FilterDescriptor. But, I wish to give that values dynamically. How to achieve it? I'll be very thankful to you if suggests any good idea for this..

Private

 

 

Sub Me_Filtering(ByVal source As Object, ByVal e As GridViewFilteringEventArgs) Handles Me.Filtering

 

I tried to get this from e, but couldn't get.

Private

 

 

Sub Me_Sorting(ByVal source As Object, ByVal e As GridViewSortingEventArgs) Handles Me.Sorting

 

But, I can get Member, SortingState from e in Sorting events.

Please Help..

Thanks & Regards,
Azharshah H

3 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 28 Dec 2010, 09:02 AM
Hi azhar,

The added FilterDescriptors are located in e.Added. You can iterate over them (they are of type FilterDescriptor) and read the values.

Greetings,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
azhar
Top achievements
Rank 1
answered on 28 Dec 2010, 02:12 PM
Thank You Mr. Ross. I got it..
0
Bill Anderson
Top achievements
Rank 1
answered on 23 Nov 2012, 06:34 PM
In the grid filtering event when I check the eventargs e.ColumnFilterDescriptor, nothing appears to be populated. For example the IsActive property == false. How do I retrieve the value of the e.ColumnFilterDescriptor.FieldFilter.LogicalOperator property?

Note: I do see the e.Added property. And it is hydrated with my selections. But i need the FieldFilter.LogicalOperator (And/Or)

Thanks in advance!
Tags
GridView
Asked by
azhar
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
azhar
Top achievements
Rank 1
Bill Anderson
Top achievements
Rank 1
Share this question
or