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