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

How to ignore start time and show appointments stacked

9 Answers 192 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
craig
Top achievements
Rank 1
craig asked on 03 Jan 2009, 10:19 AM
Hello,

I love these controls, they look great.

I am wondering one thing while I am using these controls. I currently am not so concerned with the start date as I am about the day that the appointment is set to start on. As such, I want them to be stacked from the top of the various views (I am currently only using monthly and timeline view).

I only have 4 appointments to show in the monthly view, then the user is to select more in order to go to the timeline view to see additional tasks for that day and the next few. However, if the appointments for that day in the monthly view fall out of the standard times, all you see is the 'more' link. Then, selecting timeline you see the appointments shifted down in the middle of the view.

Is there any way to have all the appointments simply stack in scheduler?

Thanks,

- Craig

9 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 06 Jan 2009, 04:33 PM
Hi Craig,

Could you please be more specific as to what you need to implement. You can open a support ticket and send us some screenshots if you think this will help us better understand your requirement.


Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
craig
Top achievements
Rank 1
answered on 07 Jan 2009, 08:39 AM
Yes I think a screenshot would show exactly what I am speaking about.

http://www.flickr.com/photos/34092735@N05/3176581360/

Almost all appointments start at the same time. However, I'd like for them all to be stacked one on top of the other which will help to avoid a floating 'more' screen when there are appointments for that day not visible for the timeview available.

I am using scheduler to distinguish which day an appointment falls on... The user will hover the appointment to get the additional details.

I am sure that there is a way to do this, but with all my tinkering I have not yet found it.

Let me know what you think. Thanks,

- Craig
0
T. Tsonev
Telerik team
answered on 07 Jan 2009, 01:32 PM
Hi Craig,

I see what you mean. We have introduced a new property in the Q3 2008 SP1 release that can be used to display all appointments, without resorting to the "more" link. The new property is called "AdaptiveRowHeight", as it allows each row to be sized independently of the others.

Here is how to use it:

<telerik:RadScheduler runat="server" ID="RadScheduler1" ...>
    <MonthView VisibleAppointmentsPerDay="20" AdaptiveRowHeight="true" />
</telerik:RadScheduler>

The VisibleAppointmentsPerDay property instructs the scheduler to display up to 20 appointments per day. The AdaptiveRowHeight will trim the empty cells in each row, so they do not take up more space than needed. See the attached screenshot.

In the upcoming SP2 release, we will also support this scenario with fixed row heights. For example, you will be able to do like this:

<telerik:RadScheduler runat="server" ID="RadScheduler1" ...>
    <MonthView VisibleAppointmentsPerDay="20" />
</telerik:RadScheduler>


This way all appointments will be displayed and all rows will be of the same height. The second screenshot demonstrates this.

Regards,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
craig
Top achievements
Rank 1
answered on 07 Jan 2009, 06:25 PM
The issue is that some days have 20 or so appointments while others only have 3 or so or maybe even 0, so if I used the adaptive row height it will look out of proportion and the scheduler will end up needing to be scrolled significantly to view it all. Ideally I'd like to show 4-5 appointments and have the more button indicating to the user that there is something more on that day, and when the user selects more it redirects to the timeline view (this part is already implemented).

I've tried playing with the day start/end, but that didn't seem to have any effect..

Thanks,

- Craig
0
Peter
Telerik team
answered on 09 Jan 2009, 03:10 PM
Hi Craig,

If I understand you correctly, then setting VisibleAppointmentsPerDay="5" should do the trick. Have you tried this already? 

Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
craig
Top achievements
Rank 1
answered on 09 Jan 2009, 07:26 PM
Here is the markup for the scheduler.

                <telerik:RadScheduler ID="GeneralTaskScheduler" Style="zoom:1; top: 0px; left: 0px; width: 949px;"
            runat="server" AllowDelete="False"
            AllowEdit="False" AllowInsert="False" HoursPanelTimeFormat="htt"
            MonthVisibleAppointmentsPerDay="5"
            VisibleAppointmentsPerDay="5"
            onappointmentclick="RadScheduler1_AppointmentClick" ReadOnly="True"
            SelectedView="MonthView" ValidationGroup="RadScheduler1"
            WorkDayEndTime="08:03:00" GroupingDirection="Vertical" Height="800px"
            Skin="Office2007"
            onappointmentdatabound="RadScheduler1_AppointmentDataBound"
            onappointmentcreated="GeneralTaskScheduler_AppointmentCreated"
                    ShowHoursColumn="False" ondatabound="GeneralTaskScheduler_DataBound"
                    onnavigationcommand="GeneralTaskScheduler_NavigationCommand"
                    ShowWeeklyColumnHeader="False" DayEndTime="08:03:00">
                    <monthview visibleappointmentsperday="4" />
                    <MultiDayView GroupingDirection="Vertical" ShowHoursColumn="False" />
                    <TimelineView NumberOfSlots="7" ReadOnly="True" />
                    <DayView UserSelectable="False" />
                    <WeekView ShowDateHeaders="False" ShowResourceHeaders="False"
                        UserSelectable="False" />
                </telerik:RadScheduler>


I tried what you say, but all I got was smaller sections for each day, however the 'more' link still showed up as the only thing visible for some days of the month without any sign of appointments for that day.

Thanks,

- Craig
0
Peter
Telerik team
answered on 10 Jan 2009, 02:03 PM

Hi craig,

Could you please send us a working demo which can run locally and test?

Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
craig
Top achievements
Rank 1
answered on 14 Jan 2009, 06:23 PM
Sorry for the delay here.

I want to build a project to show you, and will see if I am able to during the week.

However, I noticed an issue that is likely causing this.

First, I have one day that has 16 appointments in our DB. When it displays on the UI, it only shows 10 appointments.. The amount it is pushed down appears to be by about 6 appointments.. meaning that some how 6 appointments are missing from the UI.

The time for those 6 appointments are "2009-01-01 00:00:00.000" as stored in the DB. The others are set to 9AM.

Note that I set the start time equal to the end time for each appointment.

I am positive that this is the cause, but how can it be corrected to display with the proper time in the UI?
0
Peter
Telerik team
answered on 15 Jan 2009, 11:40 AM


"Note that I set the start time equal to the end time for each appointment"
- Such appointments are not valid since the start time must be before the end time. Could you please explain why you need to have appointments with 0 duration?


Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
craig
Top achievements
Rank 1
Answers by
Peter
Telerik team
craig
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or