Remove the NOT AND and NOT OR

5 posts, 0 answers
  1. Bruce
    Bruce avatar
    12 posts
    Member since:
    Oct 2010

    Posted 10 Nov 2010 Link to this post

    Hi,

    Many users have asked how to remove NOT AND and NOT OR from the dropdown. I have tried an easy way and it works.

                FilterControl1.Localization.GroupOperationNotAnd = "";
                FilterControl.Localization.GroupOperationNotOr = "";

    Don't use Null - it will not work.

    The same way can be used to remove the operators (for example: IsEmpty and NotIsEmpty) from the dropdown.

                FilterControl1.Localization.FilterFunctionIsEmpty = "";
                FilterControl1.Localization.FilterFunctionNotIsEmpty = "";

    Thanks
    Bruce
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 11 Nov 2010 Link to this post

    Hi Bruce,

    Please find attached to this message a simple running project which shows how you can remove NOT AND and NOT OR from the RadFilter dropdown. Check it out and see if it works as expected or if I am missing something out.

    I hope this helps.

    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. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 04 Aug 2011 Link to this post

    I need  this
     function FilterMenuShowing(sender, eventArgs) {
                    sender.findItemByValue("NotOr").set_visible(false);
                    sender.findItemByValue("NotAnd").set_visible(false);
                }
    But in C# code, in code behind. It is possible?
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 08 Aug 2011 Link to this post

    Hello Julieta,

    You can remove the NotAnd and NotOr group operations server-side as shown below:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadFilter1.Localization.GroupOperationNotAnd = "";
        RadFilter1.Localization.GroupOperationNotOr = "";
    }

    Best wishes,
    Pavlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 08 Aug 2011 Link to this post

    It 's very very easy!!!
    THANKS!!!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017