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

RadGridFilterMenu Language

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Liu Yan
Top achievements
Rank 1
Liu Yan asked on 24 Nov 2008, 09:47 AM
Hi,

    Now RadGridFilterMenu is English,but my user are all Chinese. How to change it for Chinese?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Nov 2008, 09:49 AM
Hello Liu Yan,

Please check this help article to know more how localize the grid filter menu:
http://www.telerik.com/help/aspnet-ajax/grdlocalizingfilteringmenuoptions.html

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Liu Yan
Top achievements
Rank 1
answered on 25 Nov 2008, 03:20 AM
Hi,
When the bold ,appear an error message:

Unable to type for "Telerik WebControls.GridMenuItem " object coercion For type "Telerik.WebControls.RadMenuItem".
Can you help me,how to ..?


protected void Page_Load(object sender, System.EventArgs e)
{
 GridFilterMenu menu = RadGrid1.FilterMenu;
 
foreach (RadMenuItem item in menu.Items)
 {
   
//change the text for the "StartsWith" menu item
   
if(item.Text == "StartsWith")
   {
      item.Text =
"your_custom_localized_string";
   }
 }
}
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Nov 2008, 06:37 AM
Hello Liu Yan,

Which version of grid are you using, ASP.Net or ASP.Net Ajax? This error seems to appear when you are trying to use this code is for the ASP.Net Version of grid. For the ASP.Net version of the grid, you can loop through the filter menu items using the following code.
cs:
protected void Page_Load(object sender, EventArgs e) 
    { 
        GridFilterMenu menu = RadGrid1.FilterMenu; 
        foreach (GridMenuItem item in menu.Items) 
        { 
           if (item.Text == "StartsWith") 
            { 
                item.Text = "your_custom_localized_string"
            } 
        } 
    } 
You can refer to this link as well.

Thanks
Princy.
Tags
Grid
Asked by
Liu Yan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Liu Yan
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or