Henrique Duarte
Top achievements
Rank 1
Veteran
Henrique Duarte
asked on 11 Apr 2009, 11:04 PM
Guys,
How can I add localization for GridView?
Regards,
Henrique
How can I add localization for GridView?
Regards,
Henrique
3 Answers, 1 is accepted
0
Hello Henrique Duarte,
We are preparing localization features for our very next release. Those will be shipped for the Q2 Release or earlier ( if we have SP2 ) . Meanwhile there are different workarounds available. Just let me know what part of the RadGridView ( which text ) you need to get localized so I can provide you some sample code.
Sincerely yours,
Pavel Pavlov
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
We are preparing localization features for our very next release. Those will be shipped for the Q2 Release or earlier ( if we have SP2 ) . Meanwhile there are different workarounds available. Just let me know what part of the RadGridView ( which text ) you need to get localized so I can provide you some sample code.
Sincerely yours,
Pavel Pavlov
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Andrea
Top achievements
Rank 2
Iron
answered on 20 Apr 2009, 11:14 AM
Hi,
I need workarounds for grouping, sorting, filtering e paging features
Thanks.
I need workarounds for grouping, sorting, filtering e paging features
Thanks.
0
Hi Andrea,
Here is a bit 'hacky' way to change the groupheader text.
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Here is a bit 'hacky' way to change the groupheader text.
public Page() |
{ |
InitializeComponent(); |
... |
... |
... |
this.gridView.LayoutUpdated += new EventHandler(gridView_LayoutUpdated); |
} |
void gridView_LayoutUpdated(object sender, EventArgs e) |
{ |
GridViewGroupPanel groupPanel = this.gridView.ChildrenOfType<GridViewItemsControl>()[0].ChildrenOfType<GridViewGroupPanel>()[0]; |
TextBlock captionTextBlock = groupPanel.ChildrenOfType<TextBlock>()[0]; |
string newText = "Custom text here..."; |
if (captionTextBlock.Text != newText) |
captionTextBlock.Text = newText; |
} |
This is the fast and the ugly way . Alternatively there is a way to style the GridViewData control via XAML but I would not recommend that. We are currently working on friendly and intuitive way for localization. We are targeting our sevice pack release (within three weeks) to provide a real localization API .
By the way what do you mean by localization of the sorting feature ?
Best wishes,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.