Change CaptionPanel text
I want to change the default text of the caption panel that is "Week starting Jul 30". The reason is, that I have to translate that to other languages. I also want to change the format the date is shown.
BR
Christoph
BR
Christoph
SIGN IN To post a reply.
4 Replies
AD
Administrator
Syncfusion Team
October 1, 2007 09:41 AM UTC
You can change this string through the static ScheduleGrid.DisplayStrings member. This field is an array of the strings used by the Schedule control. Here is part of the information provided on this member through the class reference.
public static string[] DisplayStrings = new string[]
{ "no closing delimiter error", // 0
"(none)", // 1
"Week starting ", // 2
"Starting ", // 3
" Double Click to Add All Day Event" // 4
};
CG
Christoph Gasser
October 14, 2007 09:43 AM UTC
This worked out perfectly fine! Thanx.
TS
Truth Seeker
August 22, 2017 06:56 AM UTC
That was in 2007, how do you do this now?
PM
Piruthiviraj Malaimelraj
Syncfusion Team
August 22, 2017 11:27 AM UTC
Hi Truth,
Thanks for your update,
The ScheduleControl display texts are maintained in DisplayStrings collection. So, in order to translate the ScheduleControl display texts to other languages , use the text from DisplayStrings collection and change it to your preferred languages. Already we have KB for this requirement. Please refer to the below code snippet and KB,
Code snippet:
|
//Change the text “Double Click to Add All Day Event”
ScheduleGrid.DisplayStrings[4] = “in your language” |
KB link:
Regards,
Piruthiviraj
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
CG Christoph Gasser
- Sep 30, 2007 12:58 PM UTC
- Aug 22, 2017 11:27 AM UTC