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

EntityDataSource Resources are not set on Edit Appointment screen

1 Answer 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Fernando Jaruche
Top achievements
Rank 1
Fernando Jaruche asked on 10 Apr 2010, 01:24 AM

Hi,

 

I'm using EntityDataSource on RadScheduler and it works fine.

I've added a new resource type "Paciente" (Patient) associated with edsPacientes EntityDataSource as shown on the code bellow.

It works fine for appointment creation: populates Paciente combo box with values from Pacientes table and save the consult with the correct patient.id value (I've checked the database record).

But when I try to edit the newly created appointment the value on "Paciente" combo box is not set. See attached picture.

<asp:EntityDataSource ID="edsConsultas" runat="server"   
    ConnectionString="name=jaruche1Entities"   
    DefaultContainerName="jaruche1Entities" EnableDelete="True" EnableInsert="True"   
    EnableUpdate="True" EntitySetName="Consultas" EntityTypeFilter="Consulta">  
</asp:EntityDataSource> 
<asp:EntityDataSource ID="edsPacientes" runat="server"   
    ConnectionString="name=jaruche1Entities"   
    DefaultContainerName="jaruche1Entities" EnableDelete="True" EnableInsert="True"   
    EnableUpdate="True" EntitySetName="Pacientes" EntityTypeFilter="Paciente">  
</asp:EntityDataSource> 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="300px" RenderMode="Inline" 
    Width="100%">  
    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="Termino" DataKeyField="Id" 
        DataSourceID="edsConsultas" DataStartField="Inicio" DataSubjectField="Observacoes" 
        Skin="Office2007" StartInsertingInAdvancedForm="True" SelectedView="WeekView">  
        <ResourceTypes> 
            <telerik:ResourceType DataSourceID="edsPacientes" ForeignKeyField="Paciente.Id" 
                KeyField="Id" Name="Paciente" TextField="Nome" /> 
        </ResourceTypes> 
    </telerik:RadScheduler> 
</telerik:RadAjaxPanel> 
 

Am I doing something wrong or this is a bug on RadScheduler?

I'm using Q1-2010 release.

Thanks!
Fernando

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Apr 2010, 03:46 PM
Hi Fernando,

Please, review the EntityDataSource demo. Can you isolate the problem in a simple working demo and send it to us via a support ticket?


Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Fernando Jaruche
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or