Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Change Time Zone Label

Answered Change Time Zone Label

Feed from this thread
  • Frederico Fernandes avatar

    Posted on Dec 21, 2011 (permalink)

    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.
    Attached files

    Reply

  • Answer Ivan Todorov Ivan Todorov admin's avatar

    Posted on Dec 23, 2011 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Change Time Zone Label
Related resources for "Change Time Zone Label"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]