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

GridView FilterControl Hide 'Match Case'

7 Answers 230 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oran
Top achievements
Rank 1
Oran asked on 04 Jan 2011, 05:40 PM
Hello,

I need to hide the 'Match Case' from the FilterControl  in the RadGridView as im using it for different language than english.
Is there a way to accomplish that?

Thanks,

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Jan 2011, 08:32 AM
Hello,

 Why not localize it? You can find more info here:
http://www.telerik.com/help/wpf/common-localization.html
http://www.telerik.com/help/wpf/gridview-localization2.html
http://demos.telerik.com/wpf/?GridView/Localization

Greetings,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Oran
Top achievements
Rank 1
answered on 05 Jan 2011, 09:53 AM
Thank you. But there are no capital letters in the language i am localizing. So there is no use of having a 'Match Case'.
Is there a way of removing that?

Thanks,
0
Veselin Vasilev
Telerik team
answered on 05 Jan 2011, 10:33 AM
Hello Oran,

The easiest way would be to remove that part of the filtering control by setting the
ShowFieldFilters="False" property of the datacolumn.

If you do not like this approach you should modify the control template of the filtering control in Blend. Let us know if you have any problems with it so our front end developers give you a hand.

Best wishes,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Oran
Top achievements
Rank 1
answered on 05 Jan 2011, 10:35 AM
I do need to show the field filters for all my columns, i just want to hide the 'Match Case' inside the filter window..

Oran
0
Vanya Pavlova
Telerik team
answered on 05 Jan 2011, 05:06 PM
Hello Oran,


In order to hide only the ToogleButton within the StringFilterEditor in RadGridView's FilteringControl you need to handle FieldFilterEditorCreated event of RadGridView:

private void RadGridView_FieldFilterEditorCreated (object sender, Telerik.Windows.Controls.GridView.EditorCreatedEventArgs e)
    {
   //get the StringFilterEditor in your RadGridView
        var stringFilterEditor = e.Editor as StringFilterEditor;
        if (stringFilterEditor != null)
        {
            stringFilterEditor.Loaded += new RoutedEventHandler(stringFilterEditor_Loaded);
        }
 
    }
 
    void stringFilterEditor_Loaded (object sender, RoutedEventArgs e)
    {
   //Hide the Match case toogle button in its Loaded event
        ((StringFilterEditor)sender).ChildrenOfType<ToggleButton>()[0].Visibility = Visibility.Collapsed;
    }

Thank you!

Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Daniel
Top achievements
Rank 1
answered on 09 Jun 2011, 04:24 PM
I have an issue with the match case option button, it does not return to default state when you click the Clear Filter button.
0
Rossen Hristov
Telerik team
answered on 14 Jun 2011, 08:45 AM
Hello Daniel,

We will take a look at this issue. Thanks for mentioning it.

All the best,

Ross
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
Tags
GridView
Asked by
Oran
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Oran
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Vanya Pavlova
Telerik team
Daniel
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or