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

Custom dynamic format of day slots

1 Answer 77 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Gareth McNicol
Top achievements
Rank 1
Gareth McNicol asked on 29 Mar 2011, 05:19 PM
Hi there,  Really getting somewhere with using the ScheduleView, It has enabled to solve a good few problems in recent developments. 

One thing that we're trying to achieve now is to Schedule appointments that don't necessarily have an actual start & end datetime but rather plan something in terms of Days.

For instance, if a user wanted to plan a 5 day conference but had no start date would it be possible to show
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 

as the major horizontal tick on the TimeLine view (we're using the Timeline view exclusively)  Also would it be able to go from Day 1 up to Day N where N is the VisibleDays property?

This would allow the user to build a profile of the event which could be saved somehow and then applied at a different point when the actual dates are known.

To work out the relative day I would have the control manage dates between DateTime.Today up to N visible days and work out the relative days from that but I'd really like to be able to display Day X in the header.

I've tried a few things but nothing seems to work :\

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 30 Mar 2011, 02:05 PM
Hello Gareth,

As far as I can understand, RadScheduleView does not support your scenario, but can be configured/hacked to look a lot like your needs with some limitations.

I created a very simple application that demonstrates how to configure TimelineView to display Day 1, 2, ... N in the timeruler. This is a little bit hardcoded because you need to set CurrentDate to be the first day of some month and cannot show more than 31 days. The visible range text in the navigation header of RadScheduleView shows the month name, but this could be changed by creating a custom view definition.

In addition, right now you cannot declaratively make RadScheduleView to make appointments exactly one day long, but you could use the AppointmentSaving event to modify the appointments...

Let me know if you need further information.

Best wishes,
Valeri Hristov
the Telerik team
Tags
ScheduleView
Asked by
Gareth McNicol
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or