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

Remove the NOT AND and NOT OR

7 Answers 86 Views
Filter
This is a migrated thread and some comments may be shown as answers.
govind
Top achievements
Rank 1
govind asked on 29 Sep 2010, 08:28 AM
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.

7 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Sep 2010, 12:06 PM
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
0
govind
Top achievements
Rank 1
answered on 30 Sep 2010, 08:20 AM
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.
0
govind
Top achievements
Rank 1
answered on 04 Oct 2010, 06:35 AM
Hi,

Is there anyone...who did the same thing which i want to do...
Please reply...any immediate help appreciated..
0
Pavlina
Telerik team
answered on 06 Oct 2010, 12:34 PM
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
0
govind
Top achievements
Rank 1
answered on 19 Oct 2010, 03:35 AM
Hi,
 thanks for the solution it worked for me. :)
0
July
Top achievements
Rank 2
answered on 16 Aug 2011, 06:45 PM
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
0
Pavlina
Telerik team
answered on 22 Aug 2011, 12:18 PM
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 >>

Tags
Filter
Asked by
govind
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
govind
Top achievements
Rank 1
July
Top achievements
Rank 2
Share this question
or