This is a migrated thread and some comments may be shown as answers.

Change Time Zone Label

1 Answer 64 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Frederico Fernandes
Top achievements
Rank 1
Frederico Fernandes asked on 21 Dec 2011, 12:10 PM
Hi,

It is possible to change Time Zone Label? By default it appears "Local" but i want to change to another string. In Scheduler picture attached, it is possible to see where is that "Local" label.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 23 Dec 2011, 11:33 AM
Hello Frederico,

Thank you for your question.

You can set this string for the current view the following way:
this.radScheduler1.ActiveView.DefaultTimeZone.Label = "Text";

Alternatively, you can localize the string for all views by using a LocalizationProvider. The approach is demonstrated below:
public Form10()
{
    RadSchedulerLocalizationProvider.CurrentProvider = new MySchedulerLocalization();
    InitializeComponent();
}
 
public class MySchedulerLocalization : RadSchedulerLocalizationProvider
{
    public override string GetLocalizedString(string id)
    {
        if (id == RadSchedulerStringId.TimeZoneLocal)
        {
            return "SomeText";
        }
        return base.GetLocalizedString(id);
    }
}

I hope this will help you. Feel free to ask if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team

Q3’11
of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Scheduler and Reminder
Asked by
Frederico Fernandes
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or