RadMenu Control in MasterPage

2 posts, 0 answers
  1. Annette
    Annette avatar
    16 posts
    Member since:
    Dec 2010

    Posted 22 Jun 2011 Link to this post

    I have a RadMenu Control in a MasterPage.  What is the best way to AJAX the ContentPlaceHolder, when a menu item is clicked?  Some of the pages that the menu is linked to has a radAjaxManager on them.  Which means I can only use one.

    MasterPage:

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="OrderIt.Site1"
       EnableTheming="true" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
    <%@ Register Src="~/User Controls/UserHeader.ascx" TagName="UserHeader" TagPrefix="uheader" %>
    <%@ Register Src="~/User Controls/LeftNav.ascx" TagName="LeftNav" TagPrefix="lnav" %>
    <%@ Register Src="~/User Controls/TopNav.ascx" TagName="TopNav" TagPrefix="tnav" %>
    <%@ Register Src="~/User Controls/Header.ascx" TagName="Header" TagPrefix="hdr" %>
    <%@ Register Src="~/User Controls/Footer.ascx" TagName="Footer" TagPrefix="ftr" %>
    <%@ Register Src="~/User Controls/AdminNav.ascx" TagName="AdminMenu" TagPrefix="amenu" %>
    <%@ Register Src="~/User Controls/ReportNav.ascx" TagName="ReportMenu" TagPrefix="rmenu" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    <head runat="server">
          <title>DMID - Order It</title>
          <meta http-equiv="Content-Type" content="text/html"/>
          <meta http-equiv="Content-Style-Type" content="text/css" />
            <meta http-equiv="Content-Script-Type" content="type"/>
        <link href="Skins/DMID2/Menu.DMID2.css" rel="stylesheet"  type="text/css"  lang="en-us"/>
        <link href="Skins/DMID/Window.DMID.css" rel="stylesheet" type="text/css"  lang="en-us" />
       <link href="Skins/DMID/Menu.DMID.css" rel="stylesheet" type="text/css" lang="en-us"/>
       <link href="App_Themes/DMID/Css/Stylesheet.css" rel="stylesheet" type="text/css" lang="en-us" />
       <style lang="en-us" type="text/css" >
    div.RadMenu a.rmLink .rmLeftImage
            {
                position: relative !important;
            }
            div.RadMenu  .rmLink .rmLeftImage,
            div.RadMenu  .rmLink,
            div.RadMenu .rmLink .rmText
                {
                margin: 0 !important;
                padding-left: 2px !important;           
            }
              
            div.RadMenu .rmLink1 
            {
            padding-left: 8px !important;
            width:142px !important;
            }
            .RadMenu a.rmDisabled
    {
        color: #01394f !important;
    }
     .RadMenu a.rmDisabled2:hover
    {
        color: #FFFFFF !important;
    }
    .RadMenu .rmTopArrow,
    .RadMenu .rmBottomArrow
    {
    width:153px !important;
    }
      
       </style>
          <script language="javascript" type="text/javascript">
            function body_onunload() {
                var xmlhttp;
                if ((window.event.clientX < 0) || (window.event.clientY < 0)) {
                    if (window.ActiveXObject) { // code for IE6, IE5
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                        xmlhttp.open("GET", "/Pages/SessionAbandon.aspx", false);
                        xmlhttp.send();
                    }
                    if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
                        xmlhttp = new XMLHttpRequest();
                        xmlhttp.open("GET", "/Pages/SessionAbandon.aspx", false);
                        xmlhttp.send();
                    }
                }
            }
            
      </script>
      <noscript>Your browser does not support JavaScript!</noscript>
          <asp:ContentPlaceHolder ID="head" runat="server">
       </asp:ContentPlaceHolder>
    </head>
    <body>
       <form id="form1" runat="server">
          <div class="page">
              <div id="header">
                  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                  </telerik:RadScriptManager>
                              <div id="logo">
                      <hdr:Header runat="server" />
                  </div>
                  <div id="tmenu">
                      <tnav:TopNav ID="topnav" runat="server" />
                  </div>
              </div>
             <div id="main">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%" summary="Left navigation">
                   <tr>
                      <td style="width: 150px; vertical-align: top;" >
                         <lnav:LeftNav ID="LeftNav1" runat="server"  />
                           
                          <br />   
                          <rmenu:ReportMenu ID="ReportMenu" runat="server" />
                                             <br />
                         <amenu:AdminMenu ID="AdminMenu1" runat="server" />
                      </td>
                      <td style="vertical-align: top; padding: 0px 5px 0px 5px;">
                         <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                         </asp:ContentPlaceHolder>
                      </td>
                   </tr>
                </table>
             </div>
          </div>
          <br />
          <div id="footer">
             <ftr:Footer ID="Footer1" runat="server" />
          </div>
          </form>
    </body>
    </html>


    <STRONG>Order Page that is loaded from the LeftNav control<BR></STRONG>
    <%@ Page Title="Order" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
        CodeBehind="Order.aspx.cs" Inherits="OrderIt.Order" EnableTheming="true" StylesheetTheme="DMID" %>
      
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register Src="~/User Controls/DocumentFooter.ascx" TagName="dfooter" TagPrefix="dftr" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <link href="../Skins/DMID/ComboBox.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
        <link href="../Skins/DMID/Input.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
        <link href="../Skins/DMID/ToolBar.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
        <link href="../Skins/DMID/TabStrip.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
        <link href="../Skins/DMID/Calendar.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
        <link href="../Skins/DMID/Button.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
        <link href="../Skins/DMID/Grid.DMID.css" rel="stylesheet" type="text/css" lang="en-us" />
      
        <script type="text/javascript" language="javascript">
            function openHelp(url) {
                var win = window.open('/help/' + url, 'Help', 'width=200, height=200, resizable=yes, scrollbar=yes, location=no, menubar=no, toolbar=no');
                if (window.focus) {
                    win.focus()
                }
                return false;
            }
        </script>
       <noscript>Your browser does not support JavaScript!</noscript>
        <style type="text/css" lang="en-us">
            .RadWindow_DMID .rwPopupButton:hover, .RadWindow_DMID .rwPopupButton span:hover
            {
                /* remove the background sprite when hovered */
                background-image: none !important;
            }
            .RadWindow_DMID .rwPopupButton:hover
            {
                /* some other styling */
                border: 1px solid #01394F;
                background-color: #FFEA8B;
                color: #01394f;
            }
            /* another style for the active state */.RadWindow_DMID .rwPopupButton:active, .RadWindow_DMID .rwPopupButton:active
            {
                border: 1px solid #01394F;
                background-color: #FFEA8B;
                color: #01394f;
            }
        </style>
      
        <script type="text/javascript" language="javascript">
            function ShowAlert(reason) {
                var oWnd = radalert(reason, 300, 100, "Order", redirect);
            }
            function redirect() {
                window.location.href = "home.aspx";
            }
            //Purpose: Check if anything has been changed in the form before submission
            function CheckForModification(_theForm, operation) {
                //Variables section
      
                var changeVal = "";
                var _flag = 0;
      
                //Total number of elements/controls in the form
                var _totalElementsPresent = window.document.forms[0].elements.length;
      
      
                //Real logic
                for (var i = 0; i < _totalElementsPresent; i++) {
                    var _formObject = top.window.document.forms[0].elements[i];
                    switch (_formObject.type) {
      
                        case 'text':
                            if (_formObject.value != _formObject.defaultValue) {
                                if (_formObject.value != "") {
                                    changeVal += "ElementId:" + _formObject.name + ",NewValue:" + _formObject.value + ",OldValue:" + _formObject.defaultValue + "|";
                                    _flag = 1;
                                }
                            }
                            break;
                        case 'textarea':
                        case 'password':
                        case 'file':
                        case 'hidden':
                        case 'checkbox':
                            if (_formObject.checked != _formObject.defaultChecked) {
                                if (_formObject.value != "") {
                                    changeVal += "ElementId:" + _formObject.name + ",NewValue:" + _formObject.value + ",OldValue:" + _formObject.defaultValue + "|";
                                    _flag = 1;
                                }
                            }
                            break;
                        case 'radio':
                            if (_formObject.checked != _formObject.defaultChecked) {
                                if (_formObject.value != "") {
                                    changeVal += "ElementId:" + _formObject.name + _formObject.value + ",NewValue:" + String(_formObject.checked) + ",OldValue:" + String(_formObject.defaultChecked) + "|";
                                    _flag = 1;
                                }
                            }
                            break;
      
                        case 'select-one':
                        case 'select-multiple':
                            for (var j = 0; j < _formObject.options.length; j++) {
                                if (_formObject.options[j].selected != _formObject.options[j].defaultSelected) _flag = 1;
                            }
                            break;
                    }
                }
                if (_flag == 1) {
                    top.location = window.location.href + "&OperationName=History&Operation=" + operation + "&HistoryVals=" + changeVal;
                    return true;
                }
                return false;
            }
        </script>
      
        <noscript>
            Your browser does not support JavaScript!</noscript>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h1>
            Order
            <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label></h1>
        <asp:ValidationSummary ID="vSummary" runat="server" HeaderText="<p>The following field(s) are required:</p>"
            ShowMessageBox="True" ValidationGroup="vRequired" Visible="False" />
        <br />
        <asp:Label ID="lblError" runat="server" Text="" Visible="false" CssClass="error"></asp:Label>
        <br />
        <div>
            <img src="../App_Themes/DMID/Images/redbullet.gif" alt="required" style="vertical-align: middle;" />
            denotes required fields.
        </div>
        <div class="maincontent">
            <div class="labels">
                <asp:Label ID="lblOrderNum" runat="server" Text="Order #: " Height="20px"></asp:Label>
            </div>
            <div class="textlabel">
            <asp:Label ID="lblONumber" runat="server" Text="" style="padding-top:3px;" Height="20px"></asp:Label>
                    </div>
            <div class="labels">
                <asp:Label ID="lblReceiveDate" runat="server" Text="Requested Receive Date:" Width="165px"></asp:Label>
            </div>
            <div class="textlabel" style="padding-left:170px;">
                <telerik:RadDatePicker ID="dtpReceivedDate" runat="server" Skin="DMID" EnableEmbeddedSkins="False"
                    ShowPopupOnFocus="True" Width="150px" ToolTip="Enter requested receive date">
                    <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
                        ViewSelectorText="x">
                    </Calendar>
                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                    <DateInput runat="server" DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy"
                        ToolTip="Enter requested receive date" >
                    </DateInput>
                </telerik:RadDatePicker>
                <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                <img src="../App_Themes/DMID/Images/help.png" alt="help" onclick="openHelp('RRD.aspx')"
                    style="cursor: auto; vertical-align: middle" /><asp:RequiredFieldValidator ID="rfvReceivedDate"
                        runat="server" ErrorMessage="<label for='dtpReceivedDate'>Requested Receive Date</label>"
                        Text="*" ValidationGroup="vRequired" ControlToValidate="dtpReceivedDate"></asp:RequiredFieldValidator><asp:CustomValidator
                            ID="cvdtpReceivedDate" runat="server" ErrorMessage="<label for='dtpReceivedDate'>Requested Date must be greater than today.</label>"
                            Text="*" OnServerValidate="cvdtpReceivedDate_ServerValidate"></asp:CustomValidator></div>
        </div>
        <br />
        <div class="shippingnote">
            Orders are shipped Monday through Wednesday to avoid Friday or weekend delivery.
            Vaccines will be shipped via Domestic Priority Overnight service. Call the Repository
            at (240) 477-1350 to discuss other delivery options.
        </div>
        <br />
        <div class="maincontent">
            <div class="labels">
                <asp:Label ID="lblProtocol" runat="server" Text="Select Protocol:"></asp:Label>
            </div>
            <div class="textlabel">
                <telerik:RadComboBox ID="ddlProtocol" runat="server" EnableEmbeddedSkins="false"
                    Skin="DMID" AccessibilityMode="True" AccessKey="p" AutoPostBack="True" OnLoad="ddlProtocol_Load"
                    OnPreRender="ddlProtocol_PreRender" OnSelectedIndexChanged="ddlProtocol_SelectedIndexChanged"
                    DataTextField="ProtocolID" DataValueField="ProtocolID" ToolTip="Select protocol">
                </telerik:RadComboBox><asp:RequiredFieldValidator ID="rfvProtocol" runat="server" ControlToValidate="ddlProtocol"
                    Text="*" ValidationGroup="vRequired" ErrorMessage="<label>Protocol</label>"></asp:RequiredFieldValidator>
            </div>
            <div class="labels">
                <asp:Label ID="lblInd" runat="server" Text="IND:"></asp:Label>
            </div>
            <div class="textlabel" style="padding-top: 3px;">
                <asp:Label ID="txtInd" runat="server" Text=""></asp:Label>
            </div>
             <div class="labels">
                <asp:Label ID="lblBlinded" runat="server" Text="Blinded:"></asp:Label>
            </div>
            <div class="textlabel" style="padding-top: 3px;">
                <asp:Label ID="txtBlinded" runat="server" Text=""></asp:Label>
            </div>
             <div class="labels">
                <asp:Label ID="lblInternationalSite" runat="server" Text="International Site:"></asp:Label>
            </div>
            <div class="textlabel" style="padding-top: 3px;">
                <asp:Label ID="txtInternationalSite" runat="server" Text=""></asp:Label>
            </div>
        </div>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="mpage1" Skin="DMID"
            EnableEmbeddedSkins="False" SelectedIndex="0">
            <Tabs>
                <telerik:RadTab runat="server" PageViewID="pvSite" Text="<u>S</u>ite Summary" AccessKey="S"
                    Selected="True">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="pvShip" Text="S<u>h</u>ipping Summary"
                    AccessKey="H">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="pvProtocol" Text="<u>P</u>rotocol Summary"
                    AccessKey="P">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="pvHistory" Text="<u>O</u>rder History"
                    AccessKey="O">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="mpage1" runat="server" CssClass="pv" 
            SelectedIndex="1" Width="85%">
            <telerik:RadPageView ID="pvProtocol" runat="server" Selected="true">
                <div style="padding-bottom: 10px;"><asp:Label ID="lblProtocolTitle" runat="server" Text="Protocol Summary" CssClass="tabs"></asp:Label>
                </div>
                <div>
                    <asp:Label ID="lblContact" runat="server" Text="Contact Information: "></asp:Label>
                    <br />
                    <br />
                    <asp:Literal ID="ltContact" runat="server" Mode="PassThrough" Visible="true"></asp:Literal>
                </div>
            </telerik:RadPageView>
            <telerik:RadPageView ID="pvSite" runat="server" Selected="True">
            <div style="padding-bottom: 10px;">
                    <asp:Label ID="lblSiteTitle" runat="server" Text="Site Summary" CssClass="tabs"></asp:Label>
                    </div>
                   <div class="labels">
                    <asp:Label ID="lblSiteName" runat="server" Text="Name:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadComboBox ID="ddlSiteName" runat="server" DataTextField="Name" DataValueField="SiteID"
                        EnableEmbeddedSkins="false" OnLoad="ddlSiteName_Load" OnPreRender="ddlSiteName_PreRender"
                        Skin="DMID" ToolTip="Select site name">
                    </telerik:RadComboBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvSiteName" runat="server" ControlToValidate="ddlSiteName"
                        ErrorMessage="<label for='ddlSiteName'>Site Name</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblDepartment" runat="server" Text="Department:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtDepartment" runat="server" CssClass="text-box" EnableEmbeddedSkins="false"
                        Skin="DMID" ToolTip="Enter department name" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvDepartment" runat="server" ControlToValidate="txtDepartment"
                        ErrorMessage="<label for='txtDepartment'>Site Department</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblInvestigator" runat="server" Text="Principal Investigator:" 
                        Width="140px"></asp:Label>
                </div>
                <div class="textlabel" style="padding-left: 145px !important;">
                    <telerik:RadTextBox ID="txtInvestigator" runat="server" EnableEmbeddedSkins="false"
                        Skin="DMID" ToolTip="Enter prinicipal investigator" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvInvestigator" runat="server" ControlToValidate="txtInvestigator"
                        ErrorMessage="<label for='txtInvestigator'>Principal Investigator</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator><br />
                </div>
                <div style="padding-top: 10px;">
                <asp:Label ID="lblShipInfo" runat="server" Text="Shipping Information" CssClass="tabs" ></asp:Label>
                    <br />
                    <span class="inlinehelp">This is the address where the clinical material(s) will be
                        shipped to. i.e., Shipping dock, mail room</span>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAttention" runat="server" Text="Attention To:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAttention" runat="server" EnableEmbeddedSkins="false"
                        Skin="DMID" ToolTip="Enter attention" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAttention" runat="server" ControlToValidate="txtAttention"
                        ErrorMessage="<label for='txtAttention'>Shipping Attention</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAddress" runat="server" Text="Address:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAddress" runat="server" EnableEmbeddedSkins="false" Skin="DMID"
                        ToolTip="Enter address" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ControlToValidate="txtAddress"
                        ErrorMessage="<label for='txtAddress'>Address</label>" Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAddress2" runat="server" Text=" "></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAddress2" runat="server" EnableEmbeddedSkins="false" Skin="DMID"
                        ToolTip="Enter address" Width="200px">
                    </telerik:RadTextBox>
                </div>
                <div class="labels">
                    <asp:Label ID="lblCity" runat="server" Text="City:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtCity" runat="server" EnableEmbeddedSkins="false" Skin="DMID"
                        ToolTip="Enter city" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="txtCity"
                        ErrorMessage="<label for='txtCity'>City</label>" Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblState" runat="server" Text="State:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtState" runat="server" EnableEmbeddedSkins="false" Skin="DMID"
                        ToolTip="Enter state" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="txtState"
                        ErrorMessage="<label for='txtState'>State</label>" Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblZipCode" runat="server" Text="Postal Code:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtZipCode" runat="server" EnableEmbeddedSkins="false" Skin="DMID"
                        ToolTip="Enter postal code">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvZipCode" runat="server" ControlToValidate="txtZipCode"
                        ErrorMessage="<label for='txtZipCode'>Postal Code</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblCountry" runat="server" Text="Country:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadComboBox ID="ddlCountry" runat="server" DataTextField="CountryID" DataValueField="CountryID"
                        EnableEmbeddedSkins="false" OnLoad="ddlCountry_Load" OnPreRender="ddlCountry_PreRender"
                        Skin="DMID" ToolTip="Select country">
                    </telerik:RadComboBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvCountry" runat="server" ControlToValidate="ddlCountry"
                        ErrorMessage="<label for='ddlCountry'>Country</label>" Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div style="padding-top: 10px;">
                    <asp:Label ID="Label1" runat="server" Text="Recipient Contact Information" CssClass="tabs"></asp:Label>
                    <br />
                    <span class="inlinehelp">This is the person who will be receiving/signing for the clinical
                        material.</span>
                </div>
                <div class="labels">
                    <asp:Label ID="lblRecpAttention" runat="server" Text="Attention To:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtRecpAttention" runat="server" EnableEmbeddedSkins="False"
                        Skin="DMID" ToolTip="Enter recipient" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvRecpAttention" runat="server" ControlToValidate="txtRecpAttention"
                        ErrorMessage="<label for='txtRecpAttention'>Recipient Name</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblRecpTitle" runat="server" Text="Title:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtRecpTitle" runat="server" EnableEmbeddedSkins="False"
                        Skin="DMID" ToolTip="Enter title" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvRecpTitle" runat="server" ControlToValidate="txtRecpTitle"
                        ErrorMessage="<label for='txtRecpTitle'>Recipient Title</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblRecpPhone" runat="server" Text="Phone:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtRecpPhone" runat="server" EnableEmbeddedSkins="False"
                        Skin="DMID" ToolTip="Enter phone" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvRecpPhone" runat="server" ControlToValidate="txtRecpPhone"
                        ErrorMessage="<label for='txtRecpPhone'>Recipient Phone</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblRecpFax" runat="server" Text="Fax:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtRecpFax" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
                        ToolTip="Enter fax" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvRecpFax" runat="server" ControlToValidate="txtRecpFax"
                        ErrorMessage="<label for='txtRecpFax'>Recipient Fax</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblRecpEmail" runat="server" Text="E-mail:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtRecpEmail" runat="server" EnableEmbeddedSkins="False"
                        Skin="DMID" ToolTip="Enter e-mail" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvRecpEmal" runat="server" ControlToValidate="txtRecpEmail"
                        ErrorMessage="<label for='txtRecpEmail'>Recipient Email</label>"
                        Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtRecpEmail"
                        ErrorMessage="<label for='txtRecpEmail'>Invalid Recipient E-mail</label>"
                        Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="vRequired"></asp:RegularExpressionValidator>
                </div>
                <div style="padding-top: 10px;">
                    <asp:Label ID="Label2" runat="server"  Text="Alternate Recipient Contact Information" CssClass="tabs"></asp:Label>
                    <br />
                </div>
                <div class="labels">
                    <asp:Label ID="lblAltAttention" runat="server" Text="Attention To:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAltAttention" runat="server" EnableEmbeddedSkins="False"
                        Skin="DMID" ToolTip="Enter alternate recipient" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAltAttention" runat="server" ControlToValidate="txtAltAttention"
                        ErrorMessage="<label>Alternate Name</label>" Text="*" ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAltTitle" runat="server" Text="Title:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAltTitle" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
                        ToolTip="Enter title" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAltTitle" runat="server" ControlToValidate="txtAltTitle"
                        ErrorMessage="<label for='txtAltTitle'>Alternate Title</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAltPhone" runat="server" Text="Phone:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAltPhone" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
                        ToolTip="Enter phone" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAltPhone" runat="server" ControlToValidate="txtAltPhone"
                        ErrorMessage="<label for='txtAltPhone'>Alternate Phone</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAltFax" runat="server" Text="Fax:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAltFax" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
                        ToolTip="Enter fax" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAltFax" runat="server" ControlToValidate="txtAltFax"
                        ErrorMessage="<label for='txtAltFax'>Alternate Fax</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                </div>
                <div class="labels">
                    <asp:Label ID="lblAltEmail" runat="server" Text="E-mail:"></asp:Label>
                </div>
                <div class="textlabel">
                    <telerik:RadTextBox ID="txtAltEmail" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
                        ToolTip="Enter e-mail" Width="200px">
                    </telerik:RadTextBox>
                    <img alt="required" src="../App_Themes/DMID/Images/redbullet.gif" style="vertical-align: middle;" />
                    <asp:RequiredFieldValidator ID="rfvAltEmail" runat="server" ControlToValidate="txtAltEmail"
                        ErrorMessage="<label for='txtAltEmail'>Alternate Email</label>" Text="*"
                        ValidationGroup="vRequired"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtAltEmail"
                        ErrorMessage="<label for='txtEmail'>Invalid Alternate E-mail</label>"
                        Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="vRequired"></asp:RegularExpressionValidator>
                </div>
            </telerik:RadPageView>
            <telerik:RadPageView ID="pvShip" runat="server">
                <div style="padding-bottom: 10px;">
                    <asp:Label ID="Label4" runat="server" CssClass="tabs" Text="Shipping Summary" />
                </div>
                <asp:Literal ID="ltShipping" runat="server" Mode="PassThrough"></asp:Literal></telerik:RadPageView>
            <telerik:RadPageView ID="pvHistory" runat="server">
                <div style="padding-bottom: 10px;">
                    <asp:Label ID="Label5" runat="server" CssClass="tabs" Text="Order History" />
                </div>
                <asp:Literal ID="ltHistory" runat="server" Mode="PassThrough"></asp:Literal></telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView1" runat="server">
            </telerik:RadPageView>
        </telerik:RadMultiPage>
        <br />
        <div>
            <asp:Label ID="Label6" CssClass="tabs" runat="server" Text=" Investigational Agents Products" />
        </div>
        <asp:Label ID="lblTableError" runat="server" Text="" />
        <telerik:RadGrid ID="grdProducts" runat="server" Skin="DMID" AutoGenerateColumns="False"
            GridLines="None" GroupingEnabled="False" OnLoad="grdProducts_Load" OnPreRender="grdProducts_PreRender"
            PageSize="5" AllowPaging="True" EnableEmbeddedSkins="False" AllowSorting="True"
            CellSpacing="0" Width="90%" OnNeedDataSource="grdProducts_NeedDataSource" OnUpdateCommand="grdProducts_UpdateCommand"
            Height="300px" ShowStatusBar="True" OnItemDataBound="grdProducts_ItemDataBound">
            <HeaderContextMenu EnableEmbeddedSkins="False" CssClass="GridContextMenu GridContextMenu_DMID">
            </HeaderContextMenu>
            <MasterTableView NoMasterRecordsText="No Products available." TableLayout="Fixed"
                DataKeyNames="ProductID" AllowAutomaticUpdates="True" EditMode="InPlace">
                <CommandItemSettings ExportToPdfText="Export to Pdf" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn FilterControlAltText="Filter ID column" HeaderText="ID"
                        ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID" DataField="ProductID">
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Lot column" HeaderText="Lot #"
                        ReadOnly="True" SortExpression="Lot" UniqueName="Lot" DataField="Lot">
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Description column" HeaderText="Investigational Agent<br/>Description"
                        ReadOnly="True" SortExpression="Description" UniqueName="Description" DataField="Description">
                        <HeaderStyle HorizontalAlign="Center" Width="200px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Unit Dosage column" HeaderText="Unit Dosage"
                        ReadOnly="True" SortExpression="UnitDosage" UniqueName="UnitDosage" DataField="UnitDosage">
                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Ship Unit column" HeaderText="Shipping<br/>Unit"
                        ReadOnly="True" SortExpression="ShipUnit" UniqueName="ShipUnit" DataField="ShipUnit">
                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Expire column" HeaderText="Expiration Date<br/>(mm/dd/yyyy)"
                        ReadOnly="True" SortExpression="Expire" UniqueName="Expire" DataType="System.DateTime"
                        DataField="Expire" DataFormatString="{0:d}">
                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Units Available column" HeaderText="Units<br/>Avail."
                        SortExpression="UAvailable" UniqueName="UAvailable" DataType="System.Int32" DataField="UAvailable"
                        ReadOnly="True">
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataType="System.Int32" FilterControlAltText="Filter Units Requested column"
                        HeaderText="Units<br/>Reqtd" SortExpression="URequested" UniqueName="URequested"
                        DataField="URequested">
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataType="System.Int32" FilterControlAltText="Filter Units Approved column"
                        HeaderText="Units<br/>Apprd" UniqueName="UApproved" DataField="UApproved" SortExpression="UApproved">
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Units Shipped column" HeaderText="Units<br/>Shipped"
                        ReadOnly="True" SortExpression="UShipped" UniqueName="UShipped" DataType="System.Int32"
                        DataField="UShipped">
                        <HeaderStyle HorizontalAlign="Center" Width="50px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter InventoryRefID column" ReadOnly="True"
                        SortExpression="InventoryRefID" UniqueName="InventoryRefID" DataType="System.Decimal"
                        DataField="InventoryRefID" Display="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter ShipTempRefID column" Display="false"
                        ReadOnly="True" SortExpression="ShipTempRefID" UniqueName="ShipTempRefID" DataType="System.Decimal"
                        DataField="ShipTempRefID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter Product ref id column" Display="false"
                        ReadOnly="True" SortExpression="ProductRefID" UniqueName="ProductRefID" DataType="System.Decimal"
                        DataField="ProductRefID">
                    </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="" Visible="true">
                        <HeaderStyle HorizontalAlign="Center" Width="75px" />
                    </telerik:GridEditCommandColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn InsertImageUrl="../Skins/DMID/Grid/Update.gif" UpdateImageUrl="../Skins/DMID/Grid/Update.gif"
                        EditImageUrl="../Skins/DMID/Grid/Edit.gif" CancelImageUrl="../Skins/DMID/Grid/Cancel.gif"
                        UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings Scrolling-AllowScroll="true" EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">
                <Resizing AllowColumnResize="true" />
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </ClientSettings>
            <FilterMenu EnableImageSprites="False" EnableEmbeddedSkins="False">
            </FilterMenu>
        </telerik:RadGrid>
        <br />
        <div>
            <div class="labels" style="width: 175px;">
                <asp:Label ID="lblComments" runat="server" Text="Comments:"></asp:Label>
            </div>
            <div class="textlabel">
                <telerik:RadTextBox ID="txtComments" runat="server" MaxLength="1500" EnableEmbeddedSkins="False"
                    Skin="DMID" Columns="50" Rows="5" TextMode="MultiLine" ToolTip="Enter comments">
                </telerik:RadTextBox>
            </div>
            <div class="labels" style="width: 175px;">
                <asp:Label ID="lblDMIDComments" runat="server" Text="CPM/DMID Order Support Comments:"
                    Width="175px"></asp:Label>
            </div>
            <div class="textlabel">
                <telerik:RadTextBox ID="txtDMIDComments" runat="server" MaxLength="1500" Skin="DMID"
                    EnableEmbeddedSkins="False" Columns="50" Rows="5" TextMode="MultiLine" ToolTip="Enter DMID comments">
                </telerik:RadTextBox>
            </div>
            <div class="labels" style="width: 175px;">
                <asp:Label ID="lblEssential" runat="server" Text="Essential Document Reviewer Comments:"
                    Width="175px"> </asp:Label>
            </div>
            <div class="textlabel">
                <telerik:RadTextBox ID="txtDocumentReviewer" runat="server" MaxLength="1500" Skin="DMID"
                    EnableEmbeddedSkins="False" Columns="50" Rows="5" TextMode="MultiLine" ToolTip="Enter reviewer comments">
                </telerik:RadTextBox>
            </div>
            <div class="labels" style="width: 175px;">
                <asp:Label ID="lblCancelReason" runat="server" Text="Cancellation Reason:"></asp:Label>
            </div>
            <div class="textlabel">
                <telerik:RadTextBox ID="txtCancelReason" runat="server" MaxLength="500" Skin="DMID"
                    EnableEmbeddedSkins="False" Columns="50" Rows="5" TextMode="MultiLine" ToolTip="Enter cancel reason">
                </telerik:RadTextBox>
            </div>
        </div>
        <br />
        <div style="width: 85%; text-align: right;">
            <dftr:dfooter runat="server" ID="docFooter" />
        </div>
        <br />
        <div style="text-align: center;">
            <telerik:RadButton ID="btnSubmit" runat="server" Skin="DMID" Text="Submit Order"
                EnableEmbeddedSkins="false" OnClick="btnSubmit_Click">
            </telerik:RadButton>
            <telerik:RadButton ID="btnApprove" runat="server" Skin="DMID" Text="Approve" EnableEmbeddedSkins="false"
                OnClick="btnApprove_Click">
            </telerik:RadButton>
            <telerik:RadButton ID="btnCancel" runat="server" Skin="DMID" Text="Cancel" EnableEmbeddedSkins="false"
                OnClick="btnCancel_Click">
            </telerik:RadButton>
            <telerik:RadButton ID="btnMissingDocs" runat="server" Skin="DMID" Text="Missing Documents"
                EnableEmbeddedSkins="false" OnClick="btnMissingDocs_Click">
            </telerik:RadButton>
            <telerik:RadButton ID="btnAuthorizedShip" runat="server" Skin="DMID" Text="Authorized to Ship"
                EnableEmbeddedSkins="false" OnClick="btnAuthorizedShip_Click">
            </telerik:RadButton>
        </div>
        <telerik:RadWindowManager ID="wMgr" runat="server" EnableShadow="True" EnableEmbeddedSkins="False"
            Skin="DMID">
            <AlertTemplate>
                <div class="windowpopup radalert">
                    <div class="dialogtext" style="text-align: center;">
                        {1}
                    </div>
                    <div>
                        <a onclick="$find('{0}').close(); window.location.href='home.aspx';" class="radwindowbutton"
                            href="javascript:void(0);">
                            <span class="outerspan">
                                <span class="innerspan" style="text-align: center;">##LOC[OK]##</span>
                            </span>
                        </a>
                    </div>
                </div>
            </AlertTemplate>
            <Windows>
                <telerik:RadWindow ID="wdwEmail" runat="server" EnableEmbeddedSkins="False" Skin="DMID"
                    Title="" Height="320px" Left="150px" Modal="true" ReloadOnShow="true" Width="300px"
                    ShowContentDuringLoad="false">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ddlProtocol">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="txtInd" 
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="txtBlinded" />
                        <telerik:AjaxUpdatedControl ControlID="txtInternationalSite" />
                        <telerik:AjaxUpdatedControl ControlID="mpage1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="lblTableError" />
                        <telerik:AjaxUpdatedControl ControlID="grdProducts" 
                            LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
    </asp:Content>
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jun 2011 Link to this post

    Hello Annette,

    The controls in Telerik RadAjax suite can be used in various scenarios with MasterPage. However, one should have in mind that she cannot have two RadAjaxManagers in master and content page at the same time.Instead you can use RadAjaxManagerProxy control can be added and configured design-time the same way.

    Check out the following demo and documentation for more on this.
    RadAjax and MasterPage.
    Ajax / User Controls/Master pages.

    Thanks,
    Princy.
Back to Top