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

RadFilter how to reduce the filter menu options

9 Answers 233 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Celeste
Top achievements
Rank 1
Celeste asked on 04 Nov 2010, 09:12 PM
Dear Forum,

I'd like to reduce the filter menu options in RadFilter but can find no way to do that. Does anyone have any guidance for me? I reduced the filter menu options for RadGrid by following this example:
http://www.telerik.com/help/aspnet/grid/grdreducingfiltermenuoptions.html

Thanks,
Celeste

9 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Nov 2010, 09:24 AM
Hello Celeste,

Please refer to this forum thread, which elaborates on how to reduce the RadFilter filter menu items and see if it helps to achieve your goal. 

Kind regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Celeste
Top achievements
Rank 1
answered on 09 Nov 2010, 05:41 PM
No, I really don't want to do this on the client with JavaScript. I want to do this server-side in the same way as it is done for RadGrid.
0
Pavlina
Telerik team
answered on 12 Nov 2010, 06:36 PM
Hello Celeste,

To achieve this you can cancel creation of the filter options on ItemCreated event and build items you desire. Refer to this forum thread which elaborates on similar subject.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Celeste
Top achievements
Rank 1
answered on 12 Nov 2010, 07:31 PM
I really don't see how that example will help me. Do you have any example that specifically addresses what I am trying to accomplish, preferably in C#?
0
Bruce
Top achievements
Rank 1
answered on 12 Nov 2010, 09:00 PM
Hi Celeste,

Do you want to remove some items from the operator dropdown (the one that contains Equals, Contains, Starts With, ....)?

Bruce
0
Celeste
Top achievements
Rank 1
answered on 12 Nov 2010, 09:15 PM
Yes, that is exactly what I would like to do.
0
Accepted
Bruce
Top achievements
Rank 1
answered on 12 Nov 2010, 09:47 PM
Try this (Suppose that you want to remove IsEmpty and NotIsEmpty):

            RadFilter1.Localization.FilterFunctionIsEmpty = "";
            RadFilter1.Localization.FilterFunctionNotIsEmpty = "";

You can use the same way to remove the logical operators (such as AND, Or, etc) from the dropdown.

Or see my post two days ago:
http://www.telerik.com/community/forums/aspnet-ajax/filter/365336-remove-the-not-and-and-not-or.aspx

Bruce
0
Celeste
Top achievements
Rank 1
answered on 15 Nov 2010, 04:13 PM
Thank you! That worked perfectly!
0
Jeremy
Top achievements
Rank 1
answered on 06 Nov 2014, 12:05 AM
This is a terrible way to remove items. It's changing the name of the item, which has the side effect of rendering the <a> tag used for the item with no inner-text. It's not really gone, it's just an inline element displayed with no size.     
Tags
Filter
Asked by
Celeste
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Celeste
Top achievements
Rank 1
Bruce
Top achievements
Rank 1
Jeremy
Top achievements
Rank 1
Share this question
or