Remove the NOT AND and NOT OR

8 posts, 0 answers
  1. govind
    govind avatar
    12 posts
    Member since:
    Sep 2010

    Posted 29 Sep 2010 Link to this post

    Hi,

    Kindly let me know is it possible to remove the "NOT AND " and "NOT OR" from the RAD filter menu.
    If yes, the give me broad idea how is it possible. as i do not have nay clue from where to start of.
    Any immediate reply is highly appreciated.

    Thanks and Regards,
    Govind.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 29 Sep 2010 Link to this post

    Hi Govind,

    Please examine the help article below and let me know if it helps to achieve your goal:
    http://www.telerik.com/community/forums/aspnet-ajax/filter/radfilter-events-and-customization.aspx

    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. govind
    govind avatar
    12 posts
    Member since:
    Sep 2010

    Posted 30 Sep 2010 Link to this post

    Hi,

    Thanks for immediate reply. However this code is used to hide the Expressions or Group. I need to hide the Condtion in Filter i.e  AND, OR, NOT AND, and NOT OR.
    Out of the these four options i need to hide the NOT AND and NOT OR.

    Any help will be appreciated.

    Regards,
    Govind.
  5. govind
    govind avatar
    12 posts
    Member since:
    Sep 2010

    Posted 04 Oct 2010 Link to this post

    Hi,

    Is there anyone...who did the same thing which i want to do...
    Please reply...any immediate help appreciated..
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 06 Oct 2010 Link to this post

    Hello Govind,

    Please find attached a simple working project, which handles the desired functionality. Give it a try and let me know if it works as expected or if I am leaving something important out.

    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
  7. govind
    govind avatar
    12 posts
    Member since:
    Sep 2010

    Posted 18 Oct 2010 Link to this post

    Hi,
     thanks for the solution it worked for me. :)
  8. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 16 Aug 2011 Link to this post

    How I can do this
     function FilterCreated(sender, eventArgs) {
                    
                    var filterMenu = sender.get_contextMenu();
                    filterMenu.add_showing(FilterMenuShowing);
                }
                function FilterMenuShowing(sender, eventArgs) {
                    var filter = $find("<%= RadFilter3.ClientID %>");
                    var currentExpandedItem = sender.get_attributes()._data.ItemHierarchyIndex;
                    if (filter._expressionItems[currentExpandedItem] == "Fulltext") {
                        sender.findItemByValue("IsNull").set_visible(false);
                        sender.findItemByValue("NotIsNull").set_visible(false);
                        sender.findItemByValue("Contains").set_visible(false);
                    }
                    if (filter._expressionItems[currentExpandedItem] == "Name") {
                        sender.findItemByValue("GreaterThan").set_visible(false);
                        sender.findItemByValue("LessThan").set_visible(false);
                    }
                }

    in code behind for String, number, etc?

    If editor.getype == string
    remove "GreaterThan"


    regards
  9. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 22 Aug 2011 Link to this post

    Hi Julieta,

    I am afraid that the desired behaviour can not be achieved server-side, because the filter expressions are initialized on the client.

    Kind regards,
    Pavlina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017