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> |

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type ="text/javascript" >
var custodian =
{
CustodianID:null,
EmailAddressID: null,
EmailAddress: null,
create: function() {
var obj = new Object;
obj.CustodianID = 0;
obj.EmailAddressId = "";
obj.EmailAddress = "";
}
};
function updateChanges() {
PageMethods.AddCustodian("asd", updateGrid);
//MyWebService.UpdateEmployeeByEmployee(getValues(), updateGrid);
}
function updateGrid(result) {
var tableView = $find("<%= rgCustodians.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
//var grid = $find("<%= rgCustodians.ClientID %>");
//grid.repaint();
}
</script>
</telerik:RadCodeBlock>
<span><telerik:RadTextBox ID="tbCustomdian" runat="server" Width ="200px">
</telerik:RadTextBox></span>
<span style ="margin-left:5px; vertical-align:middle" >
<asp:Button ID="btnAddCustodian" runat="server"
Text="<%$Resources:Labels, add %>" Width ="100px"
OnClientClick="updateChanges(); return false;" /></span>
<telerik:RadGrid ID="rgCustodians" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteColumn="False" GridLines="None"
ondeletecommand="rgCustodians_DeleteCommand"
onneeddatasource="rgCustodians_NeedDataSource" Width="100%">
<MasterTableView Width="100%" TableLayout="Fixed" >
<Columns>
<telerik:GridBoundColumn HeaderText="EmailAddressId" Visible ="False" DataField="EmailAddressId" UniqueName="EmailAddressId" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Cutodians" UniqueName="EmailAddress" DataField="EmailAddress"></telerik:GridBoundColumn>
<telerik:GridButtonColumn Display ="true" Visible ="true" Text="deleee" />
</Columns>
<NoRecordsTemplate>
<div> <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Labels, norecords%>" /> </div>
</NoRecordsTemplate>
</MasterTableView>
</telerik:RadGrid>
Did I do something wrong?
Thanks in advance
Wei
function
itemsRequested(sender, e) {
if (sender.get_items().get_count() == 0) {
sender.set_enabled(
false);
return;
}
}
This actually runs, but the UI of the combo doesn't change to the new style... do I have to programmably do it?
Thanks.
<telerik:RadEditor ID="RDHtmlEditor" EditModes="All" runat="server" Width="750px"
Height="700px" EnableResize="False">
<ImageManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"
MaxUploadFileSize="104857600" />
<DocumentManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor"
DeletePaths="~/Attachment/Editor" MaxUploadFileSize="104857600" />
<FlashManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"
MaxUploadFileSize="104857600" />
<MediaManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor" DeletePaths="~/Attachment/Editor"
MaxUploadFileSize="104857600" />
<TemplateManager ViewPaths="~/Attachment/Editor" UploadPaths="~/Attachment/Editor"
DeletePaths="~/Attachment/Editor" MaxUploadFileSize="104857600" />
<CssFiles>
<telerik:EditorCssFile Value="~/App_Themes/RabatstedetPublicTheme/StyleSheetPublic.css" />
</CssFiles>
<Content>
</
Content>
</telerik:RadEditor>

Hi,
My Page has 3 RadTab and each tab page has a user conttol in it. This page was working fine with 2009 Q3. But we have updated to 2010 Q1 and now this page is giving javascript error on postbac calls.
It gives error document.getelementbyid() is not an object in some resource file and line number is in billions and when i do click on debug the IE 8 shows message "Source Code is not available for this location".
This page is working fine in Mozila Firefox. Further more this page works fine when i remove AjaxManager and AjaxProxyManager from User Controls.
Is there some issue in RAD AJAX with RadAjaxManager, RadAjaxManagerProxy, RADTab, RadMultiPage, And RadSplitter?
Thanks & Regards
Imran Javed Zia