8 Answers, 1 is accepted
0
Hi Jan-Patrick,
Thank you for contacting us.
I am glad you have found out that RadControls provide localization resource files for the controls located in the mentioned install folder. However I am afraid you will need to modify manually any other control in order to apply on it a custom language configuration.
RadCalendar supports Culture based localization. For example you could declare its culture as
"de-DE" and it will change its days, tooltips and months to German. You can apply this setting either:
declaratively:
I hope this will be helpful. Let me know if you have any further questions.
Regards,
Eyup
the Telerik team
Thank you for contacting us.
I am glad you have found out that RadControls provide localization resource files for the controls located in the mentioned install folder. However I am afraid you will need to modify manually any other control in order to apply on it a custom language configuration.
RadCalendar supports Culture based localization. For example you could declare its culture as
"de-DE" and it will change its days, tooltips and months to German. You can apply this setting either:
declaratively:
<
telerik:RadDatePicker
ID
=
"RadDatePicker1"
Runat
=
"server"
Culture
=
"de-DE"
></
telerik:RadDatePicker
>
Copy Code
programmatically:
Copy Code
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadDatePicker1.Calendar.CultureInfo = new System.Globalization.CultureInfo("de-DE");
}
by changing the culture:
System.Threading.Thread.CurrentThread.CurrentCulture =
new
System.Globalization.CultureInfo(
"de-DE"
);
I hope this will be helpful. Let me know if you have any further questions.
Regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

JP
Top achievements
Rank 1
answered on 08 May 2012, 11:38 AM
Hello,
I've already seen that most of the control is localized when using the correct culture. But some texts are still english ("Today", "Cancel" in the calendar's month/year picker). When will/How can this be localized?
I've already seen that most of the control is localized when using the correct culture. But some texts are still english ("Today", "Cancel" in the calendar's month/year picker). When will/How can this be localized?
0
Hi Jan-Patrick,
You will have to modify them manually as shown in the example below:
C#:
Kind regards,
Eyup
the Telerik team
You will have to modify them manually as shown in the example below:
C#:
RadDatePicker1.Calendar.FastNavigationSettings.TodayButtonCaption =
"Heute"
; RadDatePicker1.Calendar.FastNavigationNextText =
"Nächste"
;
RadDatePicker1.Calendar.FastNavigationNextToolTip =
"Ändern vorn"
;
RadMonthYearPicker1.MonthYearNavigationSettings.TodayButtonCaption =
"Heute"
;
RadMonthYearPicker1.MonthYearNavigationSettings.NavigationNextText =
"Nächste"
;
RadMonthYearPicker1.MonthYearNavigationSettings.NavigationNextToolTip =
"Ändern vorn"
;
Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Oliver
Top achievements
Rank 1
answered on 30 Oct 2012, 08:57 PM
ok, but what about when we use a GridDateTimeColumn within a RadGrid ?
0
Hello Oliver,
In this case you could try:
I hope this will prove helpful. Please give it a try and let me know about the result.
Kind regards,
Eyup
the Telerik team
In this case you could try:
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridFilteringItem)
{
GridFilteringItem filterItem = e.Item
as
GridFilteringItem;
RadDatePicker combo = filterItem[
"OrderDate"
].Controls[0]
as
RadDatePicker;
combo.SharedCalendar.FastNavigationSettings.TodayButtonCaption =
"Heute"
;
combo.SharedCalendar.FastNavigationNextText =
"Nächste"
;
combo.SharedCalendar.FastNavigationNextToolTip =
"Ändern vorn"
;
}
}
I hope this will prove helpful. Please give it a try and let me know about the result.
Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Gideon
Top achievements
Rank 1
answered on 18 Oct 2016, 07:11 AM
To make the Solution of Eyup generic you could do this:
static
void
rg_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridFilteringItem)
{
GridFilteringItem filterItem = e.Item
as
GridFilteringItem;
GridColumn[] renderColumns = filterItem.OwnerTableView.RenderColumns;
GridColumn[] array = renderColumns;
for
(
int
i = 0; i < array.Length; i++)
{
GridColumn gridColumn = array[i];
if
(filterItem[gridColumn.UniqueName].Controls.Count > 0)
{
if
(filterItem[gridColumn.UniqueName].Controls[0].GetType() ==
typeof
(RadDatePicker))
{
RadDatePicker combo = filterItem[gridColumn.UniqueName].Controls[0]
as
RadDatePicker;
combo.SharedCalendar.FastNavigationSettings.TodayButtonCaption =
"Heute"
;
combo.SharedCalendar.FastNavigationNextText =
"Nächste"
;
combo.SharedCalendar.FastNavigationNextToolTip =
"Ändern vorn"
;
}
}
}
}
}
0

Bench
Top achievements
Rank 1
answered on 22 Dec 2017, 10:37 PM
Hi Eyup,
I try to localized the RadDateTimePicker in c# code behind an it works fine, can this be possible in javascript?i just want my datetimepicker dynamically adopt what is the culture of the browser. hope you can help me.
0
Hello Bench,
Generally, these properties can also be set on client-side:
If you try to access the browser language on server-side, you can also check the following HttpRequest.UserLanguages property:
https://msdn.microsoft.com/en-us/library/system.web.httprequest.userlanguages(v=vs.110).aspx
Regards,
Eyup
Progress Telerik
Generally, these properties can also be set on client-side:
function
pageLoad(app, args) {
var
calendar = $find(
'<%= RadCalendar1.ClientID %>'
);
var
fastNavigation = calendar._getFastNavigation();
fastNavigation.TodayButtonCaption =
"Hoy"
;
fastNavigation.OkButtonCaption =
"Aceptar"
;
fastNavigation.CancelButtonCaption =
"Cancelar"
;
}
If you try to access the browser language on server-side, you can also check the following HttpRequest.UserLanguages property:
https://msdn.microsoft.com/en-us/library/system.web.httprequest.userlanguages(v=vs.110).aspx
Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.