Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Scheduler > schedule timeline header template

Not answered schedule timeline header template

Feed from this thread
  • Stefan avatar

    Posted on Aug 31, 2011 (permalink)

    Hi,

    I try to solve the following problem:
    I need two (or more) rows in the header for each day to display dynamic data. My ViewMode is Timeline.
    Frist row: day and month (TimelineHeaderFormat = {0:dd.MM.} ), and a ...
    second row which includes a textblock to display a dynamic text (in my scenario a percentage value).
    The content of the textblock (in the second row) is set during runtime. Is it possible?

    Thanks in advance,
    Stefan



    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Sep 1, 2011 (permalink)

    Hello Stefan,

    You could try to achieve this by adding the TextBlock in the HorizontalTimelineGroupTemplate and through a Converter to set the TextBlock's Text property. If the property to which you are binding is from your view model and it implements INotifyPropertyChanged Interface it should change the Text of the TextBlock accordingly.
    I am sending you a sample project in which this approach is illustrated for displaying the Week numbers.

    Hope it will help.

    Greetings,
    Konstantina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Stefan avatar

    Posted on Sep 3, 2011 (permalink)

    Hello Konstantina,

    Thanks for your feedback.
     In your sample you are working with the component RadScheduleView. In my project i´m using RadScheduler (for example it has no GroupHeaderContentTemplateSelector property). Is it also possible to solve the problem?
    Thank you in advance.

    kind regards,
    Stefan


    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Sep 7, 2011 (permalink)

    Hello Stefan,

    I am afraid that this can be achieved only with RadScheduleView. RadScheduler is obsolete and it will be removed from the installation in Q3, so I strongly recommend you to migrate to ScheduleView. We will be happy to assist you along the way.

    Hope this information helps.

    Regards,
    Konstantina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Stefan avatar

    Posted on Sep 7, 2011 (permalink)

    Hello Konstantina,

    Thanks. Now i´m migrating my solution from RadScheduler to RadScheduleView.
    In my "old" solution (RadScheduler) I use the UniqueId-Property for each appointment which is nesessary to locate times.
    In RadScheduleView I´missing this useful property. I need such a unique identifier for each appointments in many cases.
    Any ideas? Thank you in advance.

    With best regards,
    Stefan


    Reply

  • Stefan avatar

    Posted on Sep 8, 2011 (permalink)

    Hello Konstantina,

    RadSchedileView is as powerful control. But I´m issing some features.

    In RadSchedule it was very easy to handle different cases inside the AppointmentEditing eventhandler.

    my "old" solution:
    If e.AppointmentEditAction = Telerik.Windows.Controls.Scheduler.AppointmentEditAction.Edit Then
       e.Cancel = True
    ElseIf e.AppointmentEditAction = Telerik.Windows.Controls.Scheduler.AppointmentEditAction.Resize Then
        'Resizing the appointment is ok
    End If

    In RadscheduleView I can´t find properties like "e.AppointmentEditAction" (or Telerik.Windows.Controls.Scheduler.AppointmentEditAction.Edit/Resize), but it´s necessary to handle different cases in my application.

    With best regards,
    Stefan

    Reply

  • Stefan avatar

    Posted on Sep 8, 2011 (permalink)

    Hello Konstantina,

    Sorry, my mistake this particular case is solved. UniqueID-Property is available.
    I used the following syntax (wrong):

    Dim appointment As IAppointment = Me.radSchedTest.CreateNew()
    Correct:
    Dim appointment As Appointment = Me.radSchedTest.CreateNew()

    It has nearly the same properties.

    with best regards,
    Stefan
     

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Scheduler > schedule timeline header template
Related resources for "schedule timeline header template"

WPF Scheduler Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]