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

Resources not being 'selected' in Telerik Scheduler Edit Dialog

2 Answers 68 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 26 Sep 2011, 07:33 PM

I've implemented Telerik scheduler on timeline view. I am allowing a M:M relationship between my y-axis resource (advocates) and Meetings. Here is what my scheduler looks like:

Timeline View

When I double click one of the instances of the meeting, the advanced edit dialog appears. However, in here, none of the advocates are selected as participants in the meeting:

Advocate Resources - edit meeting dialog

There are a number of advocates for whom this meeting appears in the timeline. Why do they not get displayed as selected in the edit form?

The problem doesn't end there. I have a second type of resources (legislators). There is a similar problem here - I have relationships defined for this meeting and 4 legislators, but only the first legislator is checked (and the other three remain unckecked):

Legislator Resources - edit meeting dialog

I need to add two other types of resources, and I expect that I will have a similar problem to the two I have already added.

I have been able to verify visually by changing the grouping of my scheduler and through SQL queries that the relationships in the database are valid. So, why am I unable to see each of these related resources checked? My scheduler code is as follows:

<telerik:RadScheduler runat="server" ID="RadScheduler1"
    AdvancedForm-Enabled="true"
    AllowEdit="true"
    AllowInsert="true"
    DataEndField="End"
    DataKeyField="ID"
    DataSourceID="EventsDataSource"
    DataStartField="Start"
    DataSubjectField="Subject"
    DayEndTime="17:00:00"
    DayStartTime="07:00:00"
    EnableAdvancedForm="true"
    Localization-HeaderMultiDay="Work Week"
    OverflowBehavior="Expand"
    OnAppointmentDelete="OnAppointmentDelete"
    OnAppointmentInsert="OnAppointmentInsert"
    OnAppointmentUpdate="OnAppointmentEdited"
    OnNavigationComplete="RadScheduler1_NavigationComplete"
    SelectedDate="9/20/2011"
    SelectedView="TimelineView"
    >
    <AppointmentContextMenuSettings EnableDefault="true" />    
    <AdvancedForm Modal="true" />
    <ResourceTypes>
        <telerik:ResourceType KeyField="Adv_AdvocateID" AllowMultipleValues="true" Name="Advocate" TextField="Adv_FullName" ForeignKeyField="Adv_AdvocateID"
            DataSourceID="AdvocatesDataSource" />
    </ResourceTypes>
    <ResourceTypes>
        <telerik:ResourceType KeyField="Leg_LegID" Name="Legislator" AllowMultipleValues="true" TextField="Leg_FullName" ForeignKeyField="Leg_LegID"
            DataSourceID="LegislatorsDataSource" />
    </ResourceTypes>
    <TimelineView UserSelectable="true" GroupBy="Advocate" GroupingDirection="Vertical" />
    <MultiDayView UserSelectable="false" />
    <DayView UserSelectable="false" />
    <WeekView UserSelectable="false" />
    <MonthView UserSelectable="false" />
</telerik:RadScheduler>


I'm hoping someone can shed some insight into how to correctly display the selected resources in the edit appointment dialog, and I thank you in advance for your help.

2 Answers, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 28 Sep 2011, 07:01 PM
I don't see this question as being that advanced...surely someone would be able to reply, even if it is to tell me to get lost?
0
Peter
Telerik team
answered on 28 Sep 2011, 08:06 PM
Hi Matthew,

You need to Implement A Provider That Supports Multi-valued Resources.

Only custom providers can provide the support to allow multi-valued resources (resources that can have multiple values assigned to a single appointment).

Kind regards,

Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
Matthew
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Peter
Telerik team
Share this question
or