WeekView styling issues

3 posts, 1 answers
  1. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 12 Sep 2012 Link to this post

    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!

  2. Answer
    Vladi avatar
    743 posts

    Posted 13 Sep 2012 Link to this post

    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,
    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.

  3. DevCraft banner
  4. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 14 Sep 2012 Link to this post

    That's great, thanks for the help.
Back to Top