We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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

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 


Loader.
Live Chat Icon For mobile
Up arrow icon