Appointment : custom field and user interface

3 posts, 0 answers
  1. Aldo
    Aldo avatar
    38 posts
    Member since:
    Feb 2011

    Posted 11 Jun 2012 Link to this post

    I need to show a custom appointment with some custom fields, I followed docs samples but it doesn't work.

    My steps:
    1) create an AppointmentExt class that inherits from Appointment, with 2 simple extra fields
    public class AppointmentExt : Appointment
        public planning_slot Slot { get; set; }
        public string SpecialTooltip { get; set; }

    2) added an ObservableCollection<AppointmentExt> as Appointments source
    ObservableCollection<AppointmentExt> appointments = new ObservableCollection<AppointmentExt>();

    3) Created a new Tooltip template and bind the text to my specialtooltip
    <DataTemplate x:Key="ScheduleTooltip">
        <StackPanel Orientation="Horizontal">
            <TextBlock MaxWidth="200" TextWrapping="Wrap" Text="{Binding SpecialTooltip}"/>

    At runtime the SpecialTooltip is fill but it's displayed empty (not binded?).

    So I've 2 question:
    A) how can I bind the tooltip to my SpecialTooltip field?
    B) how can I change the way the appointment is draw ?


  2. Aldo
    Aldo avatar
    38 posts
    Member since:
    Feb 2011

    Posted 11 Jun 2012 Link to this post

    Question 1) autoresponded : Appointment.SpecialTooltip

    Wait only for second one

  3. DevCraft R3 2016 release webinar banner
  4. Yana
    Yana avatar
    4547 posts

    Posted 14 Jun 2012 Link to this post

    Hello Aldo,

    First, note that when you create a custom appointment you should use its Storage for the custom properties and also override Copy and CopyFrom methods as explained in the following article:

    Also this help article: Appointment Style shows how you can change the look of the appointments.

    Hope this helps.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top