All day events not showing on Monday when DayStartTime is set

7 posts, 0 answers
  1. Simon P Stevens
    Simon P Stevens avatar
    4 posts
    Member since:
    Jul 2011

    Posted 18 Aug 2011 Link to this post

    Hi,

    When I set the WeekViewDefination to show the all day area, and also have a day start time set, the all day area appears as expected, but any all day events on Monday are not visible (the all day area on Monday is blank.)

    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:WeekViewDefinition DayStartTime="08:00" DayEndTime="18:00" ShowAllDayArea="True"/>
        <telerik:MonthViewDefinition/>
    </telerik:RadScheduleView.ViewDefinitions>

    The appointments definitely exist in the AppointmentsSource as they are visible on the MonthView.

    If I remove the DayStartTime/DayEndTime values, the all day appointments on the Monday become visible.

    See attached screenshot. On the left of the screen shot is the day view with nothing visible in the all day area, on the right is the month view which shows the all day appointments that exist.

    In this example, specifically the appointments that are not appearing are ones that are set to recur every day, and the start/end times are set to 01:00:00 to 02:00:00. I have also tried this with single appointments and seem to have the same problem.
    Am I doing anything wrong?

    Cheers,

    Simon
  2. Arch V
    Arch V avatar
    5 posts
    Member since:
    Oct 2009

    Posted 19 Aug 2011 Link to this post

    I have a similar issue where the all day appointments show up if group headers are used but not otherwise. The all day area is visible but no appointments appear.
  3. Simon P Stevens
    Simon P Stevens avatar
    4 posts
    Member since:
    Jul 2011

    Posted 22 Aug 2011 Link to this post

    Thanks for the suggestion Arch V.

    I tried turning group headers on like this:

    <telerik:WeekViewDefinition DayStartTime="08:00" DayEndTime="18:00" ShowAllDayArea="True" ShowWeekGroupHeaders="True"/>

    But the problem remained, and no all day events were displayed on Monday. Additionally, the all day appointments for every other day dropped down a line and covered up the first appointment of each day. (See attached screen shot)

    I also tried applying a custom style to the group headers but had exactly the same problem.

    It's a shame no one from Telerik is able to respond to this, there must be a fairly simple solution as it seems like quite a big issue that appointments simply do not display on a calendar control. I'm able to reproduce this on a very basic sample app.

    Simon

  4. Yana
    Admin
    Yana avatar
    4713 posts

    Posted 23 Aug 2011 Link to this post

    Hello,

    Thank you for reporting this issue.

    We've managed to reproduce it and logged it in our PITS, you can vote for it and track its progress here.

    About the second issue I am not able to reproduce it at my side. No matter how many appointments I show in AllDayArea it is not shifted over the first appointment. In the screenshot it looks like there is a free space at the top side of the AllDayArea and all the appointments are shifted down 20 pixels. Could you please remove your custom styles and see if the problem persists.

    Regards,
    Yana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  5. Simon P Stevens
    Simon P Stevens avatar
    4 posts
    Member since:
    Jul 2011

    Posted 23 Aug 2011 Link to this post

    Hi Yana,

    Thanks for logging the problem. When do you expect a fix (or workaround) will be available?

    I can reproduce the second issue in just a simple app with no custom styles or templates. All I did was set the ShowWeekGroupHeaders property to true.

    This is the code I used on the silverlight main page:
    <telerik:RadScheduleView AppointmentsSource="{Binding Appointments}" ResourceTypesSource="{Binding ResourceTypes}" >
         
        <telerik:RadScheduleView.ViewDefinitions>
            <telerik:WeekViewDefinition DayStartTime="08:00" DayEndTime="18:00" ShowAllDayArea="True" ShowWeekGroupHeaders="True"/>
            <telerik:MonthViewDefinition/>
        </telerik:RadScheduleView.ViewDefinitions>
     
    </telerik:RadScheduleView>

    And then in the code behind I create some test appointments:
    public ObservableCollection<Appointment> Appointments { get; set; }
            public ObservableCollection<ResourceType> ResourcesTypes { get; set; }
     
            public MainPage()
            {
                InitializeComponent();
     
                Appointments = new ObservableCollection<Appointment>();
                ResourcesTypes = new ObservableCollection<ResourceType>();
     
                this.DataContext = this;
     
                CreateTestData();
            }
     
            private void CreateTestData()
            {
                Appointments.Clear();
     
                for (int j = 0; j < 10; j++)
                {
                    Appointment appointment = new Appointment();
                    appointment.Start = new DateTime(2011, 08, 22, 10, j, 0);
                    appointment.End = appointment.Start.AddMinutes(30);
                    appointment.IsAllDayEvent = true;
                    appointment.Subject = "Daily appointment";
     
                    RecurrencePattern pattern = new RecurrencePattern();
                    pattern.Frequency = RecurrenceFrequency.Daily;
                    pattern.DaysOfWeekMask = RecurrenceDays.EveryDay;
                    pattern.MaxOccurrences = 10;
     
                    appointment.RecurrenceRule = new RecurrenceRule(pattern);
     
                    Appointments.Add(appointment);
                }
            }

    I've attached a screenshot of what this produces.

    If you are still having trouble replicating the problem, here is a sample project:
    http://dl.dropbox.com/u/314831/GroupHeadersLayout-PossibleBug-Example.zip

    Cheers,

    Simon
  6. Yana
    Admin
    Yana avatar
    4713 posts

    Posted 25 Aug 2011 Link to this post

    Hello Simon,

    We'll do our best to fix the first issue for the Q2 SP1 expected in mid-September.

    Thank you for providing the explanation and the project - we managed to reproduce the second issue, it's now logged and will be fixed. I'm afraid that at the moment we cannot specify a certain timeframe for this. We're sorry for the inconvenience.

    All the best,
    Yana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  7. Simon P Stevens
    Simon P Stevens avatar
    4 posts
    Member since:
    Jul 2011

    Posted 25 Aug 2011 Link to this post

    Thanks Yana
Back to Top