or
<fieldset> <legend>Scheduling</legend> <asp:ObjectDataSource ID="ListenerList" runat="server" SelectMethod="GetListenersList" TypeName="DIS.Business.BLL.Listeners"></asp:ObjectDataSource> Listener<telerik:RadComboBox ID="Listener" runat="server" DataSourceID="ListenerList" DataTextField="ComputerName" DataValueField="ID" Skin="Web20"> </telerik:RadComboBox> <br /> <asp:ObjectDataSource ID="FrequencyList" runat="server" SelectMethod="GetSchedulePatternList" TypeName="UtilityClass.Utility"></asp:ObjectDataSource> Frequency<asp:RadioButtonList ID="Frequency" runat="server" DataSourceID="FrequencyList" RepeatLayout="Flow" RepeatDirection="Horizontal" OnSelectedIndexChanged="Frequency_SelectedIndexChanged" AutoPostBack="True" OnDataBound="Frequency_DataBound"> </asp:RadioButtonList> <br /> <asp:CompareValidator ID="FromAndToComparValidator" runat="server" ErrorMessage="To Date Must be Later than From Date" ControlToValidate="ToTime" ControlToCompare="FromTime" Operator="GreaterThan"></asp:CompareValidator><br /> From<span class="required">*</span> <telerik:RadDateTimePicker ID="FromTime" runat="server" MinDate="2000-01-01" Skin="Web20"> <TimePopupButton HoverImageUrl="" ImageUrl="" /> <TimeView CellSpacing="-1"> </TimeView> <Calendar Skin="Web20" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DatePopupButton HoverImageUrl="" ImageUrl="" /> </telerik:RadDateTimePicker> <asp:RequiredFieldValidator ID="FromTimeValidator" runat="server" ErrorMessage="Date Required" ControlToValidate="FromTime"></asp:RequiredFieldValidator><br /> To<span class="required">*</span> <telerik:RadDateTimePicker ID="ToTime" runat="server" Skin="Web20"> <TimePopupButton HoverImageUrl="" ImageUrl="" /> <TimeView CellSpacing="-1"> </TimeView> <Calendar Skin="Web20" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DatePopupButton HoverImageUrl="" ImageUrl="" /> </telerik:RadDateTimePicker> <asp:RequiredFieldValidator ID="ToTimeValidator" runat="server" ErrorMessage="Date Required" ControlToValidate="ToTime"></asp:RequiredFieldValidator> <br /> <asp:ObjectDataSource ID="WeekdayList" runat="server" SelectMethod="GetWeekDayList" TypeName="DIS.Business.BLL.WeekDays"></asp:ObjectDataSource> <asp:Label ID="lblEvery" runat="server" Text="Every"></asp:Label> <asp:TextBox ID="MinuteInterval" runat="server" MaxLength="5"></asp:TextBox><asp:Label ID="lblMinutes" runat="server" Text="Minutes"></asp:Label> <asp:CheckBoxList ID="Weekday" runat="server" DataSourceID="WeekdayList" RepeatDirection="Horizontal" RepeatLayout="Flow" Visible="False"> </asp:CheckBoxList> </fieldset> <br /> <telerik:RadAjaxPanel ID="RadAjaxPanelNotification" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet"> <fieldset> <legend>Notification</legend> <asp:CheckBox ID="SendSuccessful" runat="server" Text="Send notification if successful." OnCheckedChanged="NotificationChanged" AutoPostBack="True" /> <asp:CheckBox ID="SendFailed" runat="server" Text="Send notification if failed." OnCheckedChanged="NotificationChanged" AutoPostBack="True" /><br /> <asp:Panel ID="PanelEmailDetail" runat="server" Visible="False"> New Email<br /> <asp:TextBox ID="NewEmail" runat="server" MaxLength="128"></asp:TextBox><asp:Button ID="AddEmail" runat="server" Text="Add Email" OnClick="AddEmail_Click" /><br /> <asp:ListBox ID="EmailList" runat="server" SelectionMode="Multiple" Rows="5"></asp:ListBox> <asp:Button ID="RemoveEmail" runat="server" Text="Remove Email" OnClick="RemoveEmail_Click" style="width: 125px" /><br /> </asp:Panel> </fieldset> </telerik:RadAjaxPanel> <asp:Button ID="Save" runat="server" Text="Save" OnClick="Save_Click" /> <asp:Button ID="BtAssignedUsers" runat="server" Font-Bold="True" Text="Assigned Users" /> <telerik:RadInputManager ID="RadInputManager1" runat="server" OnInit="RadInputManager1_Init" Skin="Web20"> <telerik:TextBoxSetting BehaviorID="Behavior1"> <TargetControls> <telerik:TargetInput ControlID="JobName" /> <telerik:TargetInput ControlID="Description" /> </TargetControls> <Validation IsRequired="true" ValidationGroup="JobScheduling_1" /> </telerik:TextBoxSetting> <telerik:RegExpTextBoxSetting BehaviorID="Behavior2" ErrorMessage="Invalid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"> <TargetControls> <telerik:TargetInput ControlID="NewEmail" /> </TargetControls> <Validation IsRequired="true" ValidationGroup="JobScheduling_1_Email" /> </telerik:RegExpTextBoxSetting> <telerik:NumericTextBoxSetting BehaviorID="Behavior3" Culture="English (United States)" DecimalDigits="0" DecimalSeparator="." GroupSeparator="," GroupSizes="3" MaxValue="10000" MinValue="0" NegativePattern="-n" PositivePattern="n"> <TargetControls> <telerik:TargetInput ControlID="MinuteInterval" /> </TargetControls> </telerik:NumericTextBoxSetting> </telerik:RadInputManager> </td> </tr> </table> protected void NotificationChanged(object sender, EventArgs e) { ChangeNotificationUI(); } private void ChangeNotificationUI() { bool blnDisplayNotificationList = this.SendSuccessful.Check || this.SendFailed.Checked; this.PanelEmailDetail.Visible = blnDisplayNotificationList; }| <%@ Control Language="VB" AutoEventWireup="true" CodeFile="GridEdit4.vb" Inherits="GridEdit4" %> |
| <asp:UpdatePanel ID="UpdatePanel1" runat="server" > |
| <ContentTemplate> |
| <asp:panel runat="server" ID="pUpdate"> |
| <asp:CheckBox runat="server" id="chkUpdate" OnCheckedChanged="updateCombobox" AutoPostBack="true" /> |
| <asp:Label runat="server" ID="lbUpdate" Text="Update test" /> |
| <telerik:radcombobox runat="server" ID="cmbUpdate" Visible="false" ></telerik:radcombobox> |
| </asp:panel> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| ( |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="true" > |
| <Scripts> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" > |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="FormatieRadgrid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="FormatieRadgrid" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| <telerik:AjaxUpdatedControl ControlID="GridEdit4" LoadingPanelID="UpdatePanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <!-- This is a snapshot from the Radgrid: --> |
| </Columns> |
| <EditFormSettings UserControlName="GridEdit4.ascx" EditFormType="WebUserControl"> |
| <EditColumn UniqueName="EditCommandColumn1"></EditColumn> |
| </EditFormSettings> |
| </telerik:GridTableView> |
| </DetailTables> |
Hi
What techniques/controls can I use to implement the following?
A popup window displays formatted 'terms & conditions' text in html with a scroll bar. When user scroll downs to the very bottom of the text using the scroll bar then the ‘I accept’ tick box is enabled. Once user closes the popup window the value of the acceptance tick box is passed to the calling form.
Many Thanks
Regards
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btnSave"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="CreatePanel" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="rgCampaigns" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="EditFailureText" /> <telerik:AjaxUpdatedControl ControlID="ValidationSummary1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="rgCampaigns"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgCampaigns" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="EditFailureText" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" BackgroundPosition="Center" EnableSkinTransparency="true"></telerik:RadAjaxLoadingPanel><h1>Campaigns</h1><p>Before you can create any content to share with your Partners, you must first create a campaign. This will allow your partners the ability to access any resources you share for the campaign.</p><asp:Panel runat="server" ID="CreatePanel"> <h2>Create your campaign(s)</h2> <p> <asp:Label ID="CreateFailureText" runat="server" ForeColor="Red" /> </p> <fieldset class="register"> <legend>Create campaign</legend> <table> <tr> <td colspan="3"><asp:ValidationSummary ID="ValidationSummary1" ForeColor="Red" DisplayMode="SingleParagraph" HeaderText="You must complete the fields marked with a *" runat="server" /></td> </tr> <tr> <td> Name:</td> <td> <telerik:RadTextBox ID="txtName" runat="server" EmptyMessage="Please type a name for the campaign" Width="230px"> </telerik:RadTextBox> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage=""></asp:RequiredFieldValidator> <font color="red">*</font></td> </tr> <tr> <td> Description</td> <td> <telerik:RadTextBox ID="txtDescription" runat="server" EmptyMessage="Please type a description for your campaign" Rows="5" style="margin-bottom: 0px" TextMode="MultiLine" Width="230px"> </telerik:RadTextBox> </td> <td> </td> </tr> </table> <asp:Button ID="btnSave" runat="server" Text="Save" /> </fieldset> </asp:Panel><asp:Panel runat="server" ID="EditPanel" Visible="false"> <h2>Edit your campaigns</h2> <p>You may use the table below to edit/delete existing campaigns that currently exist on your system. <br /><b>Please be aware that if you delete a campaign ALL content and partner content will be deleted</b></p> <p> <asp:Label ID="EditFailureText" runat="server" ForeColor="Red" /> </p> <fieldset> <legend>Edit existing campaigns</legend> <telerik:RadGrid ID="rgCampaigns" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="None"> <MasterTableView EditMode="EditForms"> <EditItemTemplate> </EditItemTemplate> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px" /> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="ID" Display="False" FilterControlAltText="Filter ID column" ReadOnly="true" HeaderText="ID" UniqueName="ID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="UserId" Display="False" FilterControlAltText="Filter UserId column" HeaderText="UserId" ReadOnly="True" UniqueName="UserId"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Name" UniqueName="Name"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowFiltering="False" DataField="Description" FilterControlAltText="Filter Description column" HeaderText="Description" UniqueName="Description"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CreationDate" FilterControlAltText="Filter CreationDate column" HeaderText="Date created" UniqueName="CreationDate"> </telerik:GridBoundColumn> <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column" HeaderText="Edit"> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn CommandName="Delete" FilterControlAltText="Filter Delete column" HeaderText="Delete" Text="Delete" UniqueName="Delete"> </telerik:GridButtonColumn> </Columns> <EditFormSettings EditFormType="Template"> <FormTemplate> <fieldset class="register"> <legend>Edit campaign</legend> <table> <tr> <td colspan="3"><asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="Edit" ForeColor="Red" DisplayMode="SingleParagraph" HeaderText="You must complete the fields marked with a *" runat="server" /></td> </tr> <tr> <td> Name:</td> <td> <telerik:RadTextBox ID="txtName" ValidationGroup="Edit" runat="server" Text='<%# Bind("Name") %>' EmptyMessage="Please type a name for the campaign" Width="230px"> </telerik:RadTextBox> </td> <td> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="Edit" runat="server" ControlToValidate="txtName" ErrorMessage=""></asp:RequiredFieldValidator> <font color="red">*</font></td> </tr> <tr> <td> Description</td> <td> <telerik:RadTextBox ID="txtDescription" ValidationGroup="Edit" runat="server" Text='<%# Bind("Description") %>' EmptyMessage="Please type a description for your campaign" Rows="5" style="margin-bottom: 0px" TextMode="MultiLine" Width="230px"> </telerik:RadTextBox> </td> <td> </td> </tr> </table> <asp:Button ID="btnUpdate" ValidationGroup="Edit" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'> </asp:Button> <asp:Button ID="btnCancel" ValidationGroup="Edit" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </FormTemplate> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> </telerik:RadGrid> </fieldset></asp:Panel>