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

Field Name of field being filtered

2 Answers 96 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Christine
Top achievements
Rank 1
Veteran
Christine asked on 21 May 2020, 07:17 PM

 

OK, I am down to the last thing.  I need to know how to grab what field (if any) that is being filtered in the Select Action of the controller.  There has to be a property somewhere in the Filters object that has this?  it is not like request.Sorts[0].Member, I thought it would be but it is not.  Any assistance on this will be greatly appreciated.

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 25 May 2020, 09:10 AM

Hi Christine,

Actually the Member field of the FilterDescriptor class stores the name of the filtered field as a string. For example, below I have added a filter for the Freight field:

Please note that the Member field is storing the name of the filtered property.

Are you observing different behavior on your end?

I look forward to your reply.

Regards,
Georgi
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Christine
Top achievements
Rank 1
Veteran
answered on 25 May 2020, 01:43 PM
Yes I do see that but I could not access the property in the code like the sorting.  I did find some code that worked so I am all set to go.
Tags
Filter
Asked by
Christine
Top achievements
Rank 1
Veteran
Answers by
Georgi
Telerik team
Christine
Top achievements
Rank 1
Veteran
Share this question
or