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

[Solved] Height of appointment incorrect

8 Answers 217 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 03 Mar 2008, 03:00 PM
Hi

We have 1 problem we need to solve.  It's a very specific one.  The scheduler works perfect if the  start time is a round hour, for ex 7 or 8.  But when it is 7.30 AND the duration of an appointment is 20 minutes, the height of the appointment is twice as big as should be.

I have an example : [img]http://img.skitch.com/20080303-pfm1cxqp3iax2arts36hg2ijeu.jpg[/img]

You can see that on wednesday it works perfect, appointments between 10 and 12.  But on monday, it's between 7.30 and 12 and the height is incorrect.

If we check the html the scheduler created, we see that you guys print a 200% on the div?

<td class="rsCell"><div class="rsWrap" style="z-index: 36;"
    <div title="07:30" id="ctl00_placeActionZone_Ant_calendar1_radCalendar_35_0" class="rsApt" style="height: 200%; width: 45%; padding-bottom: 2px; left: 0%;"
    <div class="rsAptWrap" style="padding-bottom: 1px;"
        <div class="rsAptInner"
            <div class="rsAptContent"
 <div class="appointement free" style="background-color: rgb(255, 255, 0); color: rgb(17, 17, 17);"
            <img src="images/general/trans.gif" class="appointement_icon">07:30 </div> 
     
                                            </div> 
</div><a class="rsAptDelete" href="ant_modules/#">delete</a><div class="rsAptResize" style="z-index: 80;"
                                            <!-- --> 
                                        </div><div class="rsAptBottom"
                </div> 
 
            </div> 
            </div> 
    </div></td


Any ideas how we can solve this problem?

8 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Mar 2008, 08:13 AM
Hi Andres,

Thank you for the detailed bug report. We have resolved the problem in the Q3 2007 Service Pack 2 release (assembly version 1425). You can download the hotfix and replace the Telerik.Web.UI.dll file with the updated version from the bin folder.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andres
Top achievements
Rank 1
answered on 04 Mar 2008, 10:12 AM
Hi

Now the problem is solved for all the days except Wednesday, where the appointments start at a round hour.  So, the problem is reversed now :)

http://img.skitch.com/20080304-hf5xb3kj7n4m7pe3ssdega6xf.jpg

Thx for your quick reply
0
T. Tsonev
Telerik team
answered on 04 Mar 2008, 11:28 AM
Hello Andres,

We will investigate the issue further, but it seems that we will not be able to produce a fix soon enough. For the moment, our suggestion is to round the day start time to the nearest divisor of 20, i.e. 7:20.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andres
Top achievements
Rank 1
answered on 21 Mar 2008, 02:02 PM
Hi

The problem isn't solved when we change the day start time to a divisor of 20.

We also have the same problem on many other combinations.  It's very annoying because the position of the appointments on the scheduler isn't correct.

An example:  The start of the day is 7h20, an appointment is 20 minutes.  The first appointment is placed ad 7h30, then 7h50 etc.  The appointments are positioned incorrectly now!

If we change the start of the day to 7h30 the appointments are positioned correctly but than the appointments starting at 10h00 are positioned incorrectly.  So we always have some appointments positioned ok, and some positioned bad.

The ugly thing about it is that the start hour of the appointment is something else than shown on the screen.

Do you have any idea when a fix for this problem can be delivered?

0
T. Tsonev
Telerik team
answered on 25 Mar 2008, 01:57 PM
Hi Andres,

I am attaching two screenshots just to be sure that we are talking about the same issue. If I understand you correctly, you are worried that all appointments are 20 minutes long, but some of them occupy two slots and some occupy one slot.

This might look to you like a bug, but is actually the expected behavior. If the appointment start falls between two slots, then it is snapped "up", to the previous slot. Respectively, the end is snapped "down", to the next slot.

Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andres
Top achievements
Rank 1
answered on 28 Mar 2008, 03:27 PM
Ok I see.  But like this the user sees an incorrect start and end hour if we don't put the start and end hour in the box?

Also if we have several blocks following each other they aren't placed underneath each other because that always snap to the beginning and end of a block. 

I understand that it's meant to be like this, but sometimes it gives awkward results on screen...

Thx for your responses, now we know why it happens and we can try to make work arrounds!

0
T. Tsonev
Telerik team
answered on 31 Mar 2008, 02:26 PM
Hi Andres,

Thank you for the understanding.

The problem is a little tricky to overcome, but we can mitigate it by using lower values for MinutesPerRow. I am attaching screenshots with the same data as before and MinutesPerRow set to "10".

Note that this requires some CSS adjustments to lower the row height:

.rsContentTable td.rsCell 
    height12px
 
.rsContent .rsHoursTable tr th 
    height12px

We also need to set TimeLabelRowSpan to "4" (the default is "2") to maintain the appearance of the hours column:

<telerik:RadScheduler ... MinutesPerRow="10" TimeLabelRowSpan="4"
</telerik:RadScheduler> 
 

I hope this helps.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andres
Top achievements
Rank 1
answered on 03 Apr 2008, 09:05 AM
Thx a lot for this solution!  We changed the minutesPerRow to 5 minutes and changed the css file too, it's way better now!

Thx for the great support!
Tags
Scheduler
Asked by
Andres
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Andres
Top achievements
Rank 1
Share this question
or