RadGrid for ASP.NET

Localizing filtering menu options Send comments on this topic.
Filtering > How to > Localizing filtering menu options

Glossary Item Box

This topic discusses changing the filtering menu options programmatically (applicable when you would like to localize these options or change them with custom text).

Here is the current approach which you can use to localize the grid filter menu items text:

C# Copy Code
protected void Page_Load(object sender, System.EventArgs e)
{
           GridFilterMenu menu = RadGrid1.FilterMenu;

           
foreach (GridMenuItem item in menu.Items)
           {
               
//change the text for the menu item with text StartsWith
             
if(item.Text == "StartsWith")
               {
                   item.Text =
"your_custom_localized_string";
               }
           }
}
VB.NET Copy Code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

             Dim Menu As GridFilterMenu = RadGrid1.FilterMenu
             Dim item As GridMenuItem

             For Each item In Menu.Items
             'change the text for the menu item with text StartsWith
                 If item.Text = "StartsWith" Then
                    item.Text = "your_custom_localized_string"
                 End If
             Next

End Sub