appointment grips and prev/next appointment

2 posts, 0 answers
  1. Chom
    Chom avatar
    56 posts
    Member since:
    Dec 2009

    Posted 26 Feb 2014 Link to this post

    Hello,

    I have two items that I need to get resolved.

    1. Is there a way to hide the grips that appear on either side of the appointment which are used to drag the appointment item (see image).
    2. Is there a way to customize the Previous Appointment or Next Appointment text in a tab that appears on the left and right side of the scheduler (see attached image).

    Thank you.

    Chom
  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 27 Feb 2014 Link to this post

    Hi Chom, 

    Thank you for contacting us. 

    1. Unfortunately there is no way to hide the grips of the appointment. 
    2. You can customize the text of the NavigationElements in the RadScheduler. There is two ways how you can do it: 
    a) set the Text property of NavigationElements 
    this.radScheduler1.SchedulerElement.BackwardsNavigator.Text = "Backwards";
    this.radScheduler1.SchedulerElement.ForwardNavigator.Text = "Forward";

    b) use RadSchedulerLocalizationProvider 
    public class CustomSchedulerLocalizationProvider : RadSchedulerLocalizationProvider
        {
            public override string GetLocalizedString(string id)
            {
                switch (id)
                {
                    case RadSchedulerStringId.NextAppointment:
                        return "Next";
                    case RadSchedulerStringId.PreviousAppointment:
                        return "Previous";
                }
     
                return string.Empty;
            }
        }
     
    RadSchedulerLocalizationProvider.CurrentProvider = new CustomSchedulerLocalizationProvider();

    In our article Translating Strings you can find sample implementation of a custom localization provider if you want to customize another control text and messages. 

    I attached a sample demo project which demonstrates you both way. 

    Regards,
    Ralitsa
    Telerik
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top