I want to localize the FastNavigationSettings(Today,OK,Cancel) buttons of 'SelectedDateCalendar' present in the RadScheduler1. I have used the following code to do so inside my Page_Load event everytime:
RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;
// Set the RadCalendar properties
popupCalendar.CultureInfo = System.Threading.Thread.CurrentThread.CurrentUICulture;
popupCalendar.FastNavigationSettings.CancelButtonCaption = GetResourceString(
"Global_Confirm_CancelText");
popupCalendar.FastNavigationSettings.TodayButtonCaption = GetResourceString(
"Schedule_CalendarView_Today");
popupCalendar.FastNavigationSettings.OkButtonCaption = GetResourceString(
"Global_Confirm_OkText");
This works the first time user visits the FastNavigationkeys. But when user selects any other date, and again visits the 'SelectedDateCalendar' the FastNavigationkeys are not localized - they appear in English.
Please let me know how to fix this.
Also, to localize the entire RadScheduler, I have used the following code:
RadScheduler1.Culture = System.Threading.
Thread.CurrentThread.CurrentUICulture;
Regards,
Abhishek