RadFilter how to reduce the filter menu options

11 posts, 1 answers
  1. Celeste
    Celeste avatar
    44 posts
    Member since:
    Oct 2010

    Posted 04 Nov 2010 Link to this post

    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
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 08 Nov 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Celeste
    Celeste avatar
    44 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2010 Link to this post

    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.
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 12 Nov 2010 Link to this post

    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
  6. Celeste
    Celeste avatar
    44 posts
    Member since:
    Oct 2010

    Posted 12 Nov 2010 Link to this post

    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#?
  7. Bruce
    Bruce avatar
    12 posts
    Member since:
    Oct 2010

    Posted 12 Nov 2010 Link to this post

    Hi Celeste,

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

    Bruce
  8. Celeste
    Celeste avatar
    44 posts
    Member since:
    Oct 2010

    Posted 12 Nov 2010 Link to this post

    Yes, that is exactly what I would like to do.
  9. Answer
    Bruce
    Bruce avatar
    12 posts
    Member since:
    Oct 2010

    Posted 12 Nov 2010 Link to this post

    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
  10. Celeste
    Celeste avatar
    44 posts
    Member since:
    Oct 2010

    Posted 15 Nov 2010 Link to this post

    Thank you! That worked perfectly!
  11. Jeremy
    Jeremy avatar
    2 posts
    Member since:
    Jan 2014

    Posted 05 Nov 2014 in reply to Bruce Link to this post

    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.     
  12. Celeste
    Celeste avatar
    3 posts
    Member since:
    Aug 2013

    Posted 06 Nov 2014 Link to this post

    Post your solution then (PS this thread is 4 years old and I don't even work at that company anymore)
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017