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

How to stop it highlighting whole week when its Monday in month view

2 Answers 36 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 08 Aug 2011, 12:19 PM
Hi,

As you'll see on the attached images, when its Monday during the week the orange highlight goes across the whole week.  When its not Monday, the orange highlight just stays on the single Day.

How can I make it so that Monday does the same as every other day?

I've implemented both the AppointmentStyleSelector and the SpecialSlotStyleSelector in this ScheduleView so could it be something I've done wrong in those that's messed it up..  Although this was happening before I added the SpecialSlotStyleSelector so it can't be that.

Thanks

Chris

2 Answers, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 09 Aug 2011, 10:50 AM
Thought I should add that this isn't just happening when I mouse-over the Monday - its happening on just normal viewing of the month view.

I say this because I noticed when looking at the 2011.Q2 "Appointment Style" example for the ScheduleView control (online version is at http://demos.telerik.com/silverlight/#ScheduleView/CustomStyles/AppointmentStyle but I'm looking at the installed versions on my machine) then change to Month view and change the day on my machine to be the first day in the week (Sunday in the case of the example), I only see this behaviour happening when I mouseover the Sunday (7th August).  I've shown this in the attached screenshot.

I've now removed all use of the AppointmentStyleSelector and SpecialSlotStyleSelector in our own code but I'm still seeing the same problem.

Is it therefore only supposed to highlight the whole week on mouse-over?



0
Dani
Telerik team
answered on 09 Aug 2011, 12:26 PM
Hello Chris,

The described behavior was a bug in the GroupHeader template. It was fixed for our clients a couple of weeks ago. For trial versions it will come out for the Q2 SP1 release in mid-September.

Meanwhile, as a workaround, I can suggest that you add the following lines of code in the VisualState x:Name="TodayHorizontal" of the GroupHeaderWeekTemplate:
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="VerticalAlignment">
                               <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Stretch" />
                           </ObjectAnimationUsingKeyFrames>
                           <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Header" Storyboard.TargetProperty="HorizontalAlignment">
                               <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Left" />
                           </ObjectAnimationUsingKeyFrames>

However, note that there will be further changes in the SP1 release that are related to group headers as a whole. You might want to wait for the SP1 release.

I hope this helps.

Kind regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Tags
ScheduleView
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Dani
Telerik team
Share this question
or