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

Header context menu localization

3 Answers 186 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Moustafa
Top achievements
Rank 1
Moustafa asked on 30 Nov 2008, 04:51 PM
Hi telerik team

I would like to localize the header context menu items of the rad grid (not grid column headers)

<MasterTableView Name="Class_MasterTableView" EnableHeaderContextMenu="true"

Remarks:

  • I'm using rad controls for asp.net ajax Q3 2008
  • framework 3.5
  • IE 7
  • windows vista

I post this question later but the reply was describing how to localize grid columns [not grid header context menu] but when I tried to post a reply by following the supplied link, it always give me "the page can not be found" 

this occurs since the new web site was published .

thanks in advance

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Dec 2008, 12:35 PM
Hello Moustafa,

A possible approach would be to handle the ItemCreated event of the RadMenu control as shown below:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    RadGrid1.HeaderContextMenu.ItemCreated += new Telerik.Web.UI.RadMenuEventHandler(HeaderContextMenu_ItemCreated); 
 
void HeaderContextMenu_ItemCreated(object sender, Telerik.Web.UI.RadMenuEventArgs e) 
    switch (e.Item.Text) 
    { 
        case "Group By": e.Item.Text = "Grupo de..."break
        case "Ungroup": e.Item.Text = "Desagrupar"break
        case "Columns": e.Item.Text = "Columnas"break
    } 

Let us know whether this helps.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Niraj
Top achievements
Rank 1
answered on 17 Feb 2011, 04:37 PM
Hi,
I am having the same problem. But i got the header context menu items translated. The problem is I am not getting how do i localize the filter menu inside the header context menu..?
Can anyone help me with this?
Regards,
Niraj Khose.
0
Daniel
Telerik team
answered on 23 Feb 2011, 11:31 AM
Hello Niraj,

The most convenient way would be to use global resources:
Localization through global resources
Global resources for RadGrid

Best regards,
Daniel
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Moustafa
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Niraj
Top achievements
Rank 1
Share this question
or