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

Remove the NOT AND and NOT OR

4 Answers 93 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 10 Nov 2010, 07:55 PM
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

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Nov 2010, 10:48 AM
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
0
July
Top achievements
Rank 2
answered on 04 Aug 2011, 05:03 PM
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?
0
Pavlina
Telerik team
answered on 08 Aug 2011, 05:16 PM
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.

0
July
Top achievements
Rank 2
answered on 08 Aug 2011, 05:34 PM
It 's very very easy!!!
THANKS!!!
Tags
Filter
Asked by
Bruce
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
July
Top achievements
Rank 2
Share this question
or