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

Multiple Resources and TimeLine Grouping

1 Answer 122 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 26 Jan 2009, 05:12 PM
I am trying to create a scheduler page that in TimeLineView will list the Resources Vertically and the Hours of the Day across the top to determine availablity for meetings.  I can get this to work until I try to implement multiple resources per appointment.  When I do that only the first resource shows the appointment that has multiple resources.  I would like each resource to display the same appointment in the time line view. 

Here are my table definitions:
Appointments
  • AppointmentId(Key)
  • Subject
  • StartDateTime
  • EndDateTime
  • RecurrenceRule
  • RecurrenceParentId

AppointmentContacts

  •  AppointmentId(Key)
  • ContactId(Key)

Contacts

  • ContactId(Key)
  • ContactName

Here is the scheduler definition

    <telerik:RadScheduler ID="dataScheduler" CustomAttributeNames="Description" OnAppointmentCreated="Scheduler_AppointmentCreated" 
        DataSourceID="AppointmentsDataSource" runat="server" DataKeyField="AppointmentId" 
        DataSubjectField="Subject" DataStartField="StartDateTime" DataEndField="EndDateTime" 
        DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" 
        OnAppointmentDataBound="dataScheduler_AppointmentDataBound" OnAppointmentDelete="dataScheduler_AppointmentDelete" 
        OnAppointmentInsert="dataScheduler_AppointmentInsert" OnAppointmentUpdate="dataScheduler_AppointmentUpdate" 
        OnDataBinding="dataScheduler_DataBinding" OnDataBound="dataScheduler_DataBound" 
        OnRecurrenceExceptionCreated="dataScheduler_RecurrenceExceptionCreated" StartEditingInAdvancedForm="true">  
        <ResourceTypes> 
            <telerik:ResourceType KeyField="AppointmentId" Name="ContactId" TextField="ContactId" 
                ForeignKeyField="AppointmentId" DataSourceID="AppointmentContactsDataSource" 
                AllowMultipleValues="true" /> 
        </ResourceTypes> 
        <TimelineView UserSelectable="true" GroupBy="ContactId" GroupingDirection="Vertical" 
            NumberOfSlots="5" /> 
    </telerik:RadScheduler> 
 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Jan 2009, 09:52 AM
Hello Dave,

This is unusual. I modified the Database Scheduler Provider trying to replicate the problem you reported but to no avail. Here is what I tested:
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView" 
            Width="750px"  TimeZoneOffset="00:00:00" 
            SelectedDate="2007-08-02" DayStartTime="08:00:00" DayEndTime="18:00:00" 
            ProviderName="ReadOnlySchedulerData" ReadOnly="false" RowHeight="50px"
            OnAppointmentCreated="RadScheduler1_AppointmentCreated">  
            <AppointmentTemplate> 
                <asp:Label runat="server" ID="RecurrenceIcon" /> 
                <%# Eval("Subject") %> 
                <br /> 
                <asp:Label runat="server" ID="Teacher" /> 
                <br /> 
                <asp:Label runat="server" ID="Students" /> 
            </AppointmentTemplate> 
            <TimelineView GroupBy="Student" GroupingDirection="vertical" /> 
        </telerik:RadScheduler>         

And the result is as in the attached screenshot.

Probably you are aware of this, but I just want to rule it out as a possible cause of the problem: Only custom providers can provide the support to allow multi-valued resources (resources that can have multiple values assigned to a single appointment). Are you using a custom provider? Here is the help topic for reference:Implementing A Provider That Supports Multi-valued Resources


Regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Dave
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or