or
<FormTemplate> <div id="divEdit" runat="server" class="formTemplate" style="height: 520px;"> <div style="margin-bottom: 4px;"> <telerik:RadButton ID="btnQSAddUpdate" runat="server" Text="Update" CommandName="Update"> </telerik:RadButton> <telerik:RadButton ID="btnQSCancel" runat="server" Text="Cancel" CausesValidation="False" CommandName="Cancel"> </telerik:RadButton> </div> <telerik:RadTabStrip runat="server" ID="tabTaskJournal" MultiPageID="Multipage1" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" ID="tabMessages" Text="Start/End Messages" PageViewID="pagMessages" Selected="true"> </telerik:RadTab> <telerik:RadTab runat="server" ID="tabDemographics" Text="Demographics" PageViewID="pagDemographics" OnPreRender="tabDemographics_PreRender"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false"> <telerik:RadPageView runat="server" ID="pagMessages"> <table class="formTemplateTable"> <tr> <td style="width: 30%;"> </td> </tr> <tr> <td style="text-align: left;"> <asp:Label ID="lblBegin" runat="server" ToolTip="Specify the start message that will appear at the beginning of the assessment" Text="Start Content" Font-Size="Small" Font-Bold="true"></asp:Label> <asp:RequiredFieldValidator ID="valStartMsg" runat="server" ControlToValidate="edtBeginMsgRichText" ErrorMessage="** REQUIRED **"></asp:RequiredFieldValidator> </td> </tr> <tr> <td> <telerik:RadEditor EnableEmbeddedSkins="true" Skin="Vista" ID="edtBeginMsgRichText" runat="server" EnableAjaxSkinRendering="true" Content='<%# Bind("BeginContent") %>' Width="740px" Height="200px" ImageManager-ViewPaths='<%# (string[])Session["currentCustomerImagesViewPath"] %>' ImageManager-UploadPaths='<%# (string[])Session["currentCustomerImagesUploadPath"] %>' ExternalDialogsPath="~/EditorDialogs" ToolTip="Specify the start message that will appear at the beginning of the assessment"> <Tools> <telerik:EditorToolGroup Tag="MainToolbar"> <telerik:EditorSplitButton Name="Undo"> </telerik:EditorSplitButton> <telerik:EditorSplitButton Name="Redo"> </telerik:EditorSplitButton> <telerik:EditorSeparator /> <telerik:EditorTool Name="Cut" /> <telerik:EditorTool Name="Copy" /> <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Formatting"> <telerik:EditorTool Name="Bold" /> <telerik:EditorTool Name="Italic" /> <telerik:EditorTool Name="Underline" /> <telerik:EditorSeparator /> <telerik:EditorSplitButton Name="ForeColor"> </telerik:EditorSplitButton> <telerik:EditorSplitButton Name="BackColor"> </telerik:EditorSplitButton> <telerik:EditorSeparator /> <telerik:EditorDropDown Name="FontName"> </telerik:EditorDropDown> <telerik:EditorDropDown Name="FontSize"> </telerik:EditorDropDown> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Alignment"> <telerik:EditorTool Name="Indent" /> <telerik:EditorTool Name="Outdent" /> <telerik:EditorTool Name="JustifyLeft" /> <telerik:EditorTool Name="JustifyCenter" /> <telerik:EditorTool Name="JustifyRight" /> <telerik:EditorTool Name="JustifyFull" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Tables"> <telerik:EditorSeparator /> <telerik:EditorTool Name="InsertTable" /> <telerik:EditorTool Name="ToggleTableBorder" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Lists"> <telerik:EditorTool Name="InsertUnorderedList" /> <telerik:EditorTool Name="InsertOrderedList" /> <telerik:EditorTool Name="InsertHorizontalRule" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="ImagesAndLinks"> <telerik:EditorTool Name="InsertLink" /> <telerik:EditorTool Name="Unlink" /> <telerik:EditorTool Name="ImageManager" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Spell"> <telerik:EditorTool Name="AjaxSpellCheck" /> </telerik:EditorToolGroup> </Tools> </telerik:RadEditor> </td> </tr> <tr> <td style="text-align: left;"> <asp:Label ID="Label1" runat="server" ToolTip="Specify the start message that will appear at the end of the assessment" Text="End Content" Font-Size="Small" Font-Bold="true"></asp:Label> <asp:RequiredFieldValidator ID="valEndMsg" runat="server" ControlToValidate="edtEndMsgRichText" ErrorMessage="** REQUIRED **"></asp:RequiredFieldValidator> </td> </tr> <tr> <td> <telerik:RadEditor EnableEmbeddedSkins="true" Skin="Vista" ID="edtEndMsgRichText" runat="server" EnableAjaxSkinRendering="true" Content='<%# Bind("EndContent") %>' Width="740px" Height="200px" ImageManager-ViewPaths='<%# (string[])Session["currentCustomerImagesViewPath"] %>' ImageManager-UploadPaths='<%# (string[])Session["currentCustomerImagesUploadPath"] %>' ExternalDialogsPath="~/EditorDialogs" ToolTip="Specify the start message that will appear at the end of the assessment"> <Tools> <telerik:EditorToolGroup Tag="MainToolbar"> <telerik:EditorSplitButton Name="Undo"> </telerik:EditorSplitButton> <telerik:EditorSplitButton Name="Redo"> </telerik:EditorSplitButton> <telerik:EditorSeparator /> <telerik:EditorTool Name="Cut" /> <telerik:EditorTool Name="Copy" /> <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Formatting"> <telerik:EditorTool Name="Bold" /> <telerik:EditorTool Name="Italic" /> <telerik:EditorTool Name="Underline" /> <telerik:EditorSeparator /> <telerik:EditorSplitButton Name="ForeColor"> </telerik:EditorSplitButton> <telerik:EditorSplitButton Name="BackColor"> </telerik:EditorSplitButton> <telerik:EditorSeparator /> <telerik:EditorDropDown Name="FontName"> </telerik:EditorDropDown> <telerik:EditorDropDown Name="FontSize"> </telerik:EditorDropDown> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Alignment"> <telerik:EditorTool Name="Indent" /> <telerik:EditorTool Name="Outdent" /> <telerik:EditorTool Name="JustifyLeft" /> <telerik:EditorTool Name="JustifyCenter" /> <telerik:EditorTool Name="JustifyRight" /> <telerik:EditorTool Name="JustifyFull" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Tables"> <telerik:EditorTool Name="InsertTable" /> <telerik:EditorTool Name="ToggleTableBorder" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Lists"> <telerik:EditorTool Name="InsertUnorderedList" /> <telerik:EditorTool Name="InsertOrderedList" /> <telerik:EditorTool Name="InsertHorizontalRule" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="ImagesAndLinks"> <telerik:EditorSeparator /> <telerik:EditorTool Name="InsertLink" /> <telerik:EditorTool Name="Unlink" /> <telerik:EditorTool Name="ImageManager" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="Spell"> <telerik:EditorTool Name="AjaxSpellCheck" /> </telerik:EditorToolGroup> </Tools> </telerik:RadEditor> </td> </tr> </table> </telerik:RadPageView> <telerik:RadPageView runat="server" ID="pagDemographics"> <table style="width:90%; border-color:Teal; border-width:2px; border-style:solid; margin:25px; padding:10px; "> <tr> <td style="width: 50%; background-color:#ADDBF7;"> <asp:Label ID="Label2" runat="server" Text="Field Name" Font-Bold="true"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:#ADDBF7;"> <asp:Label ID="Label3" runat="server" Text="Capture" Font-Bold="true"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:#ADDBF7;"> <asp:Label ID="Label4" runat="server" Text="Mandatory" Font-Bold="true"></asp:Label> </td> </tr> <tr> <td style="width: 50%; background-color:White;"> <asp:Label ID="lblFirstName" runat="server" Text="First Name"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkFirstName_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" OnPreRender="chkFirstName_Vis_Prerender"> </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkFirstName_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; border-color:Teal; background-color:#EFEFF7;"> <asp:Label ID="lblLastName" runat="server" Text="Last Name"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkLastName_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkLastName_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; background-color:White;"> <asp:Label ID="lblCompany" runat="server" Text="Company"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkCompany_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkCompany_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; background-color:#EFEFF7;"> <asp:Label ID="lblEmail" runat="server" Text="Email Address"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkEmail_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkEmail_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; background-color:White;"> <asp:Label ID="lblCountry" runat="server" Text="Country (dropdown list)"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkCountry_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkCountry_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; background-color:#EFEFF7;"> <asp:Label ID="lblSubdivision" runat="server" Text="State/Province"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkSubdivision_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkSubdivision_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; background-color:White;"> <asp:Label ID="LblJobFunction" runat="server" Text="Job Function (dropdown list)"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkJobFunction_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:White;"> <telerik:RadButton ID="chkJobFunction_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> <tr> <td style="width: 50%; background-color:#EFEFF7;"> <asp:Label ID="lblIndustry" runat="server" Text="Industry Sector (dropdown list)"></asp:Label> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkIndustry_Vis" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> <td style="width: 25%; text-align: center; background-color:#EFEFF7;"> <telerik:RadButton ID="chkIndustry_Man" runat="server" Text="" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" > </telerik:RadButton> </td> </tr> </table> <div style="margin-left: 25px;"> <p> Notes on capturing demographics from survey participants:</p> <ul> <li>Check the Capture box to prompt the user for the corresponding information </li> <li>Check the Mandatory box if the user "must" provide this information before completing the survey</li> <li>The capture of demographics is not gauranteed, since users may opt to close their browser when this page is presented</li> </ul> </div> </telerik:RadPageView> </telerik:RadMultiPage> </div></FormTemplate><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadGridAutomaticCrudOperations.aspx.cs" Inherits="RadGridAutomaticCrudOperations" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> .MyImageButton { cursor: hand; } .EditFormHeader td { font-size: 14px; padding: 4px !important; color: #0066cc; } </style> <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" CdnSettings-TelerikCdn="Enabled" /></head><body> <form id="form1" runat="server"> <telerik:RadAjaxManager runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" EnableHistory="True"> </telerik:RadAjaxManager> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" CdnSettings-TelerikCdn="Enabled"> <scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <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" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </scripts> </telerik:RadScriptManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True" AllowSorting="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowMultiRowEdit="True" AllowPaging="True" DataSourceID="DataSource1" OnItemUpdated="RadGrid1_ItemUpdated" AllowFilteringByColumn="True" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted" OnDataBound="RadGrid1_DataBound" CellSpacing="0"> <pagerstyle mode="NextPrevAndNumeric" /> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <mastertableview autogeneratecolumns="False" commanditemdisplay="TopAndBottom" datakeynames="ProductID" datasourceid="DataSource1" editmode="EditForms" horizontalalign="NotSet" width="100%"> <commanditemsettings exporttopdftext="Export to PDF" /> <rowindicatorcolumn filtercontrolalttext="Filter RowIndicator column" visible="True"> </rowindicatorcolumn> <expandcollapsecolumn filtercontrolalttext="Filter ExpandColumn column" visible="True"> </expandcollapsecolumn> <Columns> <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32" Display="False" FilterControlAltText="Filter ProductID column" HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ProductName" FilterControlAltText="Filter ProductName column" HeaderText="ProductName" SortExpression="ProductName" UniqueName="ProductName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SupplierID" DataType="System.Int32" Display="False" FilterControlAltText="Filter SupplierID column" HeaderText="SupplierID" SortExpression="SupplierID" UniqueName="SupplierID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32" Display="False" FilterControlAltText="Filter CategoryID column" HeaderText="CategoryID" SortExpression="CategoryID" UniqueName="CategoryID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="QuantityPerUnit" Display="False" FilterControlAltText="Filter QuantityPerUnit column" HeaderText="QuantityPerUnit" SortExpression="QuantityPerUnit" UniqueName="QuantityPerUnit"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" FilterControlAltText="Filter UnitPrice column" HeaderText="UnitPrice" SortExpression="UnitPrice" UniqueName="UnitPrice"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="UnitsInStock" DataType="System.Int16" FilterControlAltText="Filter UnitsInStock column" HeaderText="UnitsInStock" SortExpression="UnitsInStock" UniqueName="UnitsInStock"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="UnitsOnOrder" DataType="System.Int16" Display="False" FilterControlAltText="Filter UnitsOnOrder column" HeaderText="UnitsOnOrder" SortExpression="UnitsOnOrder" UniqueName="UnitsOnOrder"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ReorderLevel" DataType="System.Int16" Display="False" FilterControlAltText="Filter ReorderLevel column" HeaderText="ReorderLevel" SortExpression="ReorderLevel" UniqueName="ReorderLevel"> </telerik:GridBoundColumn> <telerik:GridCheckBoxColumn DataField="Discontinued" DataType="System.Boolean" Display="False" FilterControlAltText="Filter Discontinued column" HeaderText="Discontinued" SortExpression="Discontinued" UniqueName="Discontinued"> </telerik:GridCheckBoxColumn> <telerik:GridBoundColumn DataField="CategoryName" FilterControlAltText="Filter CategoryName column" HeaderText="CategoryName" SortExpression="CategoryName" UniqueName="CategoryName"> </telerik:GridBoundColumn> </Columns> <editformsettings> <formtableitemstyle wrap="False" /> <formtablestyle backcolor="White" cellpadding="2" cellspacing="0" height="110px" /> <formmaintablestyle backcolor="White" cellpadding="3" cellspacing="0" width="100%" /> <formcaptionstyle cssclass="EditFormHeader" /> <FormMainTableStyle BackColor="White" CellPadding="3" CellSpacing="0" GridLines="None" Width="100%" /> <FormTableStyle BackColor="White" CellPadding="2" CellSpacing="0" Height="110px" /> <formtablealternatingitemstyle wrap="False" /> <editcolumn buttontype="ImageButton" canceltext="Cancel edit" uniquename="EditCommandColumn1"> </editcolumn> <formtablebuttonrowstyle cssclass="EditFormButtonRow" horizontalalign="Right" /> </editformsettings> </mastertableview> <filtermenu enableimagesprites="False"> </filtermenu> </telerik:RadGrid> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> </telerik:RadWindowManager> </telerik:RadAjaxPanel> <asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:NorthwindOAConnectionString %>" ID="DataSource1" runat="server" SelectCommand="SELECT * FROM [Alphabetical list of products]"></asp:SqlDataSource> <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Sunset"> </telerik:RadSkinManager> </form></body></html>((#\*){1}) | (([0-9\*]{1,9})+-+([0-9\*]{1,9}))