Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Scheduler and Reminder > Can you remove the times from the appointment details?

Answered Can you remove the times from the appointment details?

Feed from this thread
  • Craig Gamble avatar

    Posted on Apr 10, 2009 (permalink)

    is it possible to remove the times?

    i am using the monthview where the appointments (or should i say availibilites) are in days and no time is ever specified. this gives me a 00:00AM - 00:00AM in each of the appointments which looks bad. can it be hidden?

    i am binding using a dataprovider also

    Cheers,
    Craig

    Reply

  • Answer Jordan Jordan admin's avatar

    Posted on Apr 13, 2009 (permalink)

    Hi Craig Gamble,

    Yes, it is possible. You just have to set the AppointmentTitleFormat property to a format that omits the start and end values ({0} and {1}) like bellow:

    this.radScheduler1.AppointmentTitleFormat = "{2} ({3})";

    Also, would you like this feature more if instead of 0, 1, 2 ... were used start, end, etc. (so that the above format would be something like "{{subject}} ({{location}})")?

    Greetings,
    Jordan
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.

    Reply

  • Craig Gamble avatar

    Posted on Apr 15, 2009 (permalink)

    thats great thanks.

    yeah if you could make it {subject} {location} etc i think it would make it easier to understand for other programmers who may have to work on the code at a later date.

    Cheers,
    Craig

    Reply

  • Matthew Link avatar

    Posted on Jul 30, 2010 (permalink)

    Related to this,  Is it possible to still show the dates, but not include the times?

    Reply

  • Dobry Zranchev Dobry Zranchev admin's avatar

    Posted on Aug 3, 2010 (permalink)

    Hello Matthew Link,

    Thank you for writing.

    The way to do it is to subscribe for the AppointmentFormating event of the scheduler and set the AppointmentTitleFormat property of the AppointmentElement that is a parameter of the arguments to {0: MM/dd/yyyy} {1:MM/dd/yyyy} {2} {3} where:
    - {0} is StartDate of the appointment
    - {1} is EndDate
    - {2} is Summary
    - {3} is Location

    For further questions feel free to contact us.

    All the best,
    Dobry Zranchev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Matthew Link avatar

    Posted on Aug 4, 2010 (permalink)

    Thanks!  That's just what I needed.

    Reply

  • Thi Han avatar

    Posted on Dec 27, 2011 (permalink)

    I want to show the subject in schedular .So how to do that  AppointmentTitleFormat.?

    Reply

  • Ivan Petrov Ivan Petrov admin's avatar

    Posted on Dec 30, 2011 (permalink)

    Hi Thi Han,

    Thank you for writing.

    As Dobry explained in his post you have to subscribe to the AppointmentFormating event of the RadScheduler and set the TitleFormat of the appointment element. Also there are four pieces of data that can be included in the displayed string using this title format:
    • {0} - Start date
    • {1} - End date
    • {2} - Subject
    • {3} - Location
    Consider the following AppointmentFormating event handler which leaves only the subject to be displayed in the scheduler:
    private void radScheduler1_AppointmentFormatting(object sender, SchedulerAppointmentEventArgs e)
    {
      e.AppointmentElement.TitleFormat = "{2}";
    }

    I hope this will be useful. If you have further questions we would be glad to assist.
     
    Kind regards,
    Ivan Petrov
    the Telerik teamQ3’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 > Can you remove the times from the appointment details?
Related resources for "Can you remove the times from the appointment details?"

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