Ulrich Witschaß
Top achievements
Rank 1
Ulrich Witschaß
asked on 06 Dec 2010, 06:01 PM
Hi Telerik,
I am searching for an option to localize the schedule navigator, but haven't found any solution.
What is the best practise to localize the schedule navigator?
best regards
Ulrik
I am searching for an option to localize the schedule navigator, but haven't found any solution.
What is the best practise to localize the schedule navigator?
best regards
Ulrik
4 Answers, 1 is accepted
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 06 Dec 2010, 06:10 PM
Hello,
to localize the SchedulerNavigator, add a new class as per the following exmaple:
and in your form load for exmaple: set the localization
Full documentation regarding localization of the SchedulerNavigator is available here
hope that helps but let me know if you have further questions
Richard
to localize the SchedulerNavigator, add a new class as per the following exmaple:
Public Class CustomSchedulerNavigatorLocalizationProvider Inherits SchedulerNavigatorLocalizationProvider Public Overrides Function GetLocalizedString(ByVal id As String) As String Select Case id Case SchedulerNavigatorStringId.DayViewButtonCaption Return "Day View Local" Case SchedulerNavigatorStringId.WeekViewButtonCaption Return "Week View Local" Case SchedulerNavigatorStringId.MonthViewButtonCaption Return "Month View Local" Case SchedulerNavigatorStringId.TimelineViewButtonCaption Return "Timeline View Local" Case SchedulerNavigatorStringId.ShowWeekendCheckboxCaption Return "Show Weekend Local" Case SchedulerNavigatorStringId.TodayButtonCaptionToday Return "Today Local" Case SchedulerNavigatorStringId.TodayButtonCaptionThisWeek Return "This week Local" Case SchedulerNavigatorStringId.TodayButtonCaptionThisMonth Return "This month Local" End Select Return String.Empty End FunctionEnd Classand in your form load for exmaple: set the localization
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SchedulerNavigatorLocalizationProvider.CurrentProvider = New CustomSchedulerNavigatorLocalizationProvider End SubFull documentation regarding localization of the SchedulerNavigator is available here
hope that helps but let me know if you have further questions
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 07 Dec 2010, 11:46 PM
Hello,
How did this go? If this helped, please remember to mark as answer so others can find the solution too. If you need more help, just let me know.
thanks
Richard
How did this go? If this helped, please remember to mark as answer so others can find the solution too. If you need more help, just let me know.
thanks
Richard
0
Ulrich Witschaß
Top achievements
Rank 1
answered on 08 Dec 2010, 12:50 PM
It worked fine.
I didn't find the needed class to override as the other classes actually start with "Rad" and I searched with this prefix.
best regards
Ulrik
I didn't find the needed class to override as the other classes actually start with "Rad" and I searched with this prefix.
best regards
Ulrik
0
Hi Ulrich Witschaß,
Thank you for writing back.
We have some differences in the naming convention and we will consider updating the names of the classes making them consistent.
In case that you have other questions, do not hesitate to contact us.
Kind regards,
Dobry Zranchev
the Telerik team
Thank you for writing back.
We have some differences in the naming convention and we will consider updating the names of the classes making them consistent.
In case that you have other questions, do not hesitate to contact us.
Kind regards,
Dobry Zranchev
the Telerik team