I added a customized InlineEditTemplate to a RadScheduler. When I double-clicked an appoint, the editor displayed correctly, but when I clicked the Cancel or Update button, or resized the editor window, I got a JScript error . However, the data was still posted to the database despite the JScript error. When I removed the InlineEditTemplate (using the default Inline Template), the error went away.
Here are more details:
ASPX code:
<
InlineEditTemplate>
<span class="rsCustomAppointmentContainerInner">
<asp:Label ID="Label1" runat="server" Text="Select an OPR"></asp:Label>
<telerik:RadComboBox ID="RadComboBox1" runat="server"
DataSourceID="opr_datasource" DataTextField="organization_key"
DataValueField="organization_key" SelectedValue='<%#Bind("organization") %>' Width="100%">
</telerik:RadComboBox>
<asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Font-Underline="false" Font-Bold="true" ForeColor="gray">
<asp:Image runat="server" ID="insertImage" Height="16px" Width="16px" ImageUrl="~/Images/Save.gif" AlternateText="update" />
Update
</asp:LinkButton>
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Font-Underline="false" Font-Bold="true" ForeColor="gray">
<asp:Image runat="server" ID="Image3" Height="16px" Width="16px" ImageUrl="~/Images/cancel.gif" AlternateText="cancel" />
Cancel
</asp:LinkButton>
</span>
</InlineEditTemplate>
Error message when clicking the buttons:
Invalid argument. Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.402.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab30853f2-6f9f-496e-85c8-cca8f7f2e17c%3a16e4e7cd%3aed16cbdc%3a11a04f7e%3af7645509%3a24ee1bba%3a650fdad%3aa960fda2%3aca44ff11%3a58366029, line 6243 character 1
Error line:
line 6243: wrap.style.zIndex=parseInt(wrap.style.zIndex)-this._wrapZIndexStep;
Error message when resizing the inline editor:
'this._template.offsetHeight' is null or not an object Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.402.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab30853f2-6f9f-496e-85c8-cca8f7f2e17c%3a16e4e7cd%3aed16cbdc%3a11a04f7e%3af7645509%3a24ee1bba%3a650fdad%3aa960fda2%3aca44ff11%3a58366029, line 6279 character 1
Error line:
line 6279: var _128=this._textArea?this._textArea.parentNode.offsetHeight:this._template.offsetHeight;
Thank you very much for your help!