Translating RadScheduler 'Previous/Next Appointment'

6 posts, 1 answers
  1. Tiago
    Tiago avatar
    25 posts
    Member since:
    Aug 2009

    Posted 30 Sep 2009 Link to this post

    Dear friends,

    In my translation activity i could not find how to translate the 'Previous/Next Appointment' buttons in RadScheduler.
    Can you help me?

    Here's my code:

    class TradutorScheduler:RadSchedulerLocalizationProvider
    {
            public override string GetLocalizedString(string id)
            {
                switch (id)
                {
                    case RadSchedulerStringId.AppointmentDialogTitle:
                        return "Nova Tarefa";
                    case RadSchedulerStringId.AppointmentDialogSubject:
                        return "Assunto:";
                    case RadSchedulerStringId.AppointmentDialogDelete:
                        return "Apagar";
                    case RadSchedulerStringId.AppointmentDialogCancel:
                        return "Cancelar";
                    case RadSchedulerStringId.StatusBusy:
                        return "Ocupado";
                    case RadSchedulerStringId.ContextMenuNewAppointment:
                        return "Nova Tarefa";
                    case RadSchedulerStringId.ContextMenuNewRecurringAppointment:
                        return "Nova Tarefa Repetida";
                    default:
                        return base.GetLocalizedString(id);
                }
            }
        }

    Thanks in advance.

  2. Answer
    Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 05 Oct 2009 Link to this post

    Hello Tiago Pinho,

    We will add stringIds to the localization provider in the new version of RadScheduler. At the moment, you can access the Forward and Backwards navigators and modify their Text properties. Take a look at the following code snippet:

      this.radScheduler.SchedulerElement.ForwardNavigator.Text = "Next";
      this.radScheduler.SchedulerElement.BackwardsNavigator.Text = "Previous";

    Please write me back if you have additional questions.

    Kind regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Tiago
    Tiago avatar
    25 posts
    Member since:
    Aug 2009

    Posted 06 Oct 2009 Link to this post

    Dear Boyko Markov,

    When using:

    using Telerik.WinControls.UI; 
    using Telerik.WinControls; 
    using Telerik.WinControls.Enumerations; 
    using Telerik.WinControls.UI.Scheduler.Dialogs; 
    using Telerik.WinControls.UI.Scheduler; 
    using Telerik.WinControls.UI.Localization; 


    this.radScheduler1.SchedulerElement.ForwardNavigator.Text = "Proximo evento"

    I get the error:

    'Telerik.WinControls.UI.RadSchedulerElement' does not contain a definition for 'ForwardNavigator' and no extension method 'ForwardNavigator' accepting a first argument of type 'Telerik.WinControls.UI.RadSchedulerElement' could be found (are you missing a using directive or an assembly reference?) 
    Am i missing anything?

    Thanks
  4. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 06 Oct 2009 Link to this post

    Hi Tiago Pinho,

    We have introduced these two new properties in the latest internal build. I suggest you download it and try it as we have also made many improvements and bug fixes in RadScheduler. However in the version which you use at the moment, you can get these elements through the children collection of RadSchedulerElement using its Children property.

    If you need more information, please contact me again.

    Best wishes,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Tiago
    Tiago avatar
    25 posts
    Member since:
    Aug 2009

    Posted 15 Oct 2009 Link to this post

    Dear Boyko,

    'You can get these elements through the children collection of RadSchedulerElement using its Childrenproperty.'

    Can you give me an example on how to do it?

    Thanks a lot! :)
  6. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 21 Oct 2009 Link to this post

    Hi Tiago Pinho,

    You can download and try the new beta release of RadControls for Winforms. The two new properties(ForwardNavigator and BackwardsNavigator) have been added in the release.

    Please contact me again if you need more information.

    Greetings,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top