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

Translating RadScheduler 'Previous/Next Appointment'

5 Answers 145 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Tiago
Top achievements
Rank 2
Tiago asked on 30 Sep 2009, 10:23 AM
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.

5 Answers, 1 is accepted

Sort by
0
Accepted
Boyko Markov
Telerik team
answered on 05 Oct 2009, 02:59 PM
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.
0
Tiago
Top achievements
Rank 2
answered on 06 Oct 2009, 08:58 AM
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
0
Boyko Markov
Telerik team
answered on 06 Oct 2009, 11:43 AM
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.
0
Tiago
Top achievements
Rank 2
answered on 15 Oct 2009, 02:48 PM
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! :)
0
Boyko Markov
Telerik team
answered on 21 Oct 2009, 07:33 AM
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.
Tags
Scheduler and Reminder
Asked by
Tiago
Top achievements
Rank 2
Answers by
Boyko Markov
Telerik team
Tiago
Top achievements
Rank 2
Share this question
or