Category / Section
How to change or localize the "Double Click to add All Day Event" like default strings in ScheduleControl?
1 min read
You can change or localize the default strings such as, “Double Click to add new event” displayed in DayView of ScheduleControl by using the DisplayStrings static property of ScheduleGrid class that is an array string property having default strings in its collection.
C#
//Form1() //Specify the corresponding array index for string that has to be changed/localized ScheduleGrid.DisplayStrings[4] = "The Localized string"; //4-Double click to add all day event.
VB
‘Form1() 'Specify the corresponding array index for string that has to be changed/localized ScheduleGrid.DisplayStrings(4) = "The Localized string" '4-Double click to add all day event
Note: The following is the definition for DisplayStrings array. You can specify the array index for default strings that has to be localized or changed.
C#
public static string[] DisplayStrings = new string[] { "no closing delimiter error", "(none)", "Week starting ", "Starting ", " Double Click to Add All Day Event", "To ", "From ", "Remove this appointment?", "Remove Appointment" }; private const int _no_closing_delimiter_error = 0; private const int _none = 1; private const int _week_starting = 2; private const int _starting = 3; private const int _Double_Click_to_Add_All_Day_Event = 4; private const int _To = 5; private const int _From = 6; private const int _Remove_this_appointment = 7; private const int _Remove_Appointment = 8;
Screenshot before localization
Figure 1: Default display string in DayView
Screenshot after localization
Figure 2: Localized/changed display string in DayView
Sample