
Andrés David Santacoloma Isaza
Top achievements
Rank 1
Andrés David Santacoloma Isaza
asked on 12 Oct 2010, 11:40 PM
Hi:
I need change the text "drag a column here to group by this column" because my language is spanish
as I do?
thanks
I need change the text "drag a column here to group by this column" because my language is spanish
as I do?
thanks
5 Answers, 1 is accepted
0

Emanuel Varga
Top achievements
Rank 1
answered on 13 Oct 2010, 04:26 AM
Hello Andres,
In order to do that you have to use a custom localization provider.
For localization of the RadGridView, filtering and other strings displayed in the grid please take a look at this help article, it provides an in depth sample on how to achieve this.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
In order to do that you have to use a custom localization provider.
For localization of the RadGridView, filtering and other strings displayed in the grid please take a look at this help article, it provides an in depth sample on how to achieve this.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
0

Andrés David Santacoloma Isaza
Top achievements
Rank 1
answered on 13 Oct 2010, 04:30 PM
Hi:
I need change the text displayed only.
The help article link is broken.
Thanks.
I need change the text displayed only.
The help article link is broken.
Thanks.
0

Emanuel Varga
Top achievements
Rank 1
answered on 13 Oct 2010, 04:37 PM
Hello again Andres,
Sorry for the broken link, i swear it was working when i posted it :(, anyway this is the right link ( i will update the other post also ).
Because of virtualization, the grid reuses it's cells, and recreates them when needed, so you cannot just change a property to change that text, this has to be done with a custom localization provider.
*Update: As an example you can use this to set the custom localization:
And for the CustomLocalizationProvider part:
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Sorry for the broken link, i swear it was working when i posted it :(, anyway this is the right link ( i will update the other post also ).
Because of virtualization, the grid reuses it's cells, and recreates them when needed, so you cannot just change a property to change that text, this has to be done with a custom localization provider.
*Update: As an example you can use this to set the custom localization:
RadGridLocalizationProvider.CurrentProvider =
new
CustomLocalizationProvider();
And for the CustomLocalizationProvider part:
public
class
CustomLocalizationProvider : RadGridLocalizationProvider
{
public
override
string
GetLocalizedString(
string
id)
{
switch
(id)
{
case
RadGridStringId.GroupByThisColumnMenuItem:
return
"My custom group by this column text"
;
}
return
base
.GetLocalizedString(id);
}
}
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
0

Andre
Top achievements
Rank 1
answered on 21 Dec 2010, 10:16 PM
Dear Emanuel,
I create as you describe. So, how to this work?
Tanks
André Pavini
I create as you describe. So, how to this work?
Tanks
André Pavini
0
Accepted

Richard Slade
Top achievements
Rank 2
answered on 21 Dec 2010, 11:09 PM
Hello,
Once you have created your own RadGridLocalizationProvider class for example: MyEnglishRadGridLocalizationProvider, you simply need to set
as per the documebtation that Emanuel provided.
For reference, the documentation on how to localize the RadGridView is here
Hope that helps
Richard
Once you have created your own RadGridLocalizationProvider class for example: MyEnglishRadGridLocalizationProvider, you simply need to set
RadGridLocalizationProvider.CurrentProvider =
New
MyEnglishRadGridLocalizationProvider()
For reference, the documentation on how to localize the RadGridView is here
Hope that helps
Richard