3 Answers, 1 is accepted
0
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.
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 ..?
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";
}
}
}
{
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:
You can refer to this link as well.
Thanks
Princy.
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"; |
} |
} |
} |
Thanks
Princy.