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

WeekView styling issues

2 Answers 67 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Craig Mellon
Top achievements
Rank 1
Craig Mellon asked on 12 Sep 2012, 10:51 AM
Hi, I'm trying to achieve a style I had setup on the old Scheduler, I'm pretty close to what I want to achieve but I just can't get round a couple of issues I'm having - I've search the forums and help and cannot resolve these.

1. On week view definition how can I change the width of the day columns (as shown in attached image)
2. How can shade in the background of a resource group (as shown in the attached image)
3. How to make the current week start on Today

Please see attached image, many thanks for any help!

Image

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 13 Sep 2012, 03:02 PM
Hello Craig,

To achieve the wanted look of the ScheduleView control you will need to:
  1. Set FirstDayOfWeek property of the WeekViewDefinition.
  2. Set the ShowAllDayArea property of the WeekViewDefinition to true.
  3. Create a SpecialSlotStyleSelector class that inherits ScheduleViewStyleSelector and override its SelectStyle method, in order to style the different resource slots in the view.
  4. Create a separate class for each resource in the ScheduleView that inherits Slot in order to be able to give them different SpecialSlotStyles in the SelectStyle method.
  5. Finally set the GroupHeaderDateStringFormat property of the WeekView to display the desired GroupHeaderDate format.

We created and attached a sample project for you with the described customization.

Hope this helps.


All the best,
Vladi
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Craig Mellon
Top achievements
Rank 1
answered on 14 Sep 2012, 07:54 AM
That's great, thanks for the help.
Tags
ScheduleView
Asked by
Craig Mellon
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Craig Mellon
Top achievements
Rank 1
Share this question
or