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

[Solved] Howto edit RadGrid FilterMenu Language

1 Answer 341 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 10 Jul 2009, 12:50 PM
Hello,

I'm currently working on a Sharepoint Webpart containing the RadGrid. This Grid is able to Filter items

RadGrid1.AllowFilteringByColumn = true

I've read an article to change the FilterMenu with this code:

GridFilterMenu menu = RadGrid1.FilterMenu; 
                    int i = 0; 
                    while (i < menu.Items.Count) 
                    { 
                        if (menu.Items[i].Text == "NoFilter" ||  
                            menu.Items[i].Text == "Contains" || 
                            menu.Items[i].Text == "EqualTo" || 
                            menu.Items[i].Text == "GreatherThan" || 
                            menu.Items[i].Text == "LessThan"
                        { 
                            i++; 
                        } 
                        else 
                        { 
                            menu.Items.RemoveAt(i); 
                        } 
                    } 

My Question now is - Is is possible to change the visible names of the Fliter Menu Items.

NoFilter should be displayed as "Geen Filter"
Contains should be displayed as "Bevat"
EqualTo should be displayed as "Gelijk aan"
GreatherThan should be displayed as "Groter dan"
LessThan should be displayed as "Minder dan"

Is there a way to achieve this, because the client I'm working for has a Dutch-only policy on their software.
I Hope you're able to help me.

Paul

1 Answer, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 13 Jul 2009, 12:02 PM
Turns out the solution to this problem is explained here:
http://www.telerik.com/help/aspnet-ajax/grdlocalizingfilteringmenuoptions.html





Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Share this question
or