I have an inline template with an "edit details" button that pops a rad window containing a custom advanced insert form.
If the user startes to enter a subject and clicks on edit details, I need a way to populate the subject line in the custom advanced insert form with the user entered subject. How can I access the text from TitleTextBox2?
--Thanks!
...
If the user startes to enter a subject and clicks on edit details, I need a way to populate the subject line in the custom advanced insert form with the user entered subject. How can I access the text from TitleTextBox2?
--Thanks!
<InlineInsertTemplate> <div id="InlineInsertTemplate" style="height: 20px"> <asp:TextBox ID="TitleTextBox2" runat="server" Text='<%# Bind("Subject") %>' Width="90%" TextMode="MultiLine" /> <br /> <asp:Button ID="InsertButton" runat="server" CssClass="stdButton" CommandName="Insert" Text="Save" /> <input type="button" id="InlineInsertEditButton" class="stdButton" onclick="inlineEdit(-1)" value="Edit Details" /> <asp:Button ID="InsertCancelButton" runat="server" CssClass="stdButton" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> <br /> </div> </InlineInsertTemplate>...
function inlineEdit(inlineEditType) { var scheduler = $find('<%=RadScheduler1.ClientID %>'); var TitleTextBox2ID = $find('<%=TitleTextBox2.ClientID %>'); //Error: 'TitleTextBox2' is not declared. It may be inaccessible due to its protection level. selectedAppointment = scheduler.get_currentAppointment(); if (inlineEditType == -1) { //Create New openAdvancedCreateAppointment(selectedAppointment.get_start(), selectedAppointment.get_end(), selectedAppointment._isAllDay(), null); } else if (inlineEditType == -2) { //Edit openAdvancedEditAppointment(selectedAppointment); } scheduler.hideInlineForm(); return false; }