Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
249 views
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>
Princy
Top achievements
Rank 2
 answered on 23 Jun 2011
1 answer
119 views
I'm trying to do the following with nested RadGrids.
Can someone give me the control setup for this (if it is posible):

Level 0
+    Level 0 Grid Detail (people info)
+    Level 1 Grid listing entries (Unit Info)
      +  Level 1 Grid Details  (people Info in Unit)
      +  Level 2 Grid listing entries (Area Info)
             Level 2 Grid Details (people in Area)

e.g.
Main Region
    -   Bob    ------------ people row
        Ted    ------------ people row
    -   Sales ------------  unit grid row
            - John         ---------- unit people row.
            - Carol        ---------- unit people row
            - Mid Atantic  ---------area grid row
                - Sue         ---------area people row


Thanks
Shinu
Top achievements
Rank 2
 answered on 23 Jun 2011
1 answer
81 views
I recently updated to the newest version of the ASP.Net Ajax controls version 2011.1.519 and am experiencing errors. Although the Visual Studio build and deployment were successful, when I go to the browser page I am getting this error:

Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.519, .... publicToken =121ae78165ba3d4' or one of its dependencies ...

How do I fix this. I am sure it is that my assembly version or public token is wrong, but which one do I use?
Shinu
Top achievements
Rank 2
 answered on 23 Jun 2011
2 answers
1.7K+ views
Hello experts

I need urgent help

I have a radGrid in which i want to have an image column that will display different images depending on the selected DataField value.  
Like i have a field called status in on of my table which contains the values 0,1,2
If the user enters 0 value then the image should show according to that selected value, same as with 1 and 2 values.

Images have given for the values are in this way, which are stored in my project directory
0 for "out-image.jpg"
1 for  "in-image.jpg"
2 for  "locked-image.jpg"


From the example below please can you advise 2 things

1) Is the systax below correct to make any column of the grid to appear as imagecolumn?

2) how can I change the values of this column from the code behind based upon below conditions

 <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="CustomerID" DataImageUrlFormatString="IMG/{0}.jpg"
                     AlternateText="Customer image" DataAlternateTextField="ContactName" ImageAlign="Middle"
                      ImageHeight="110px" ImageWidth="90px"
                      HeaderText="Image Column" FooterText="ImageColumn footer" />

If  datafield value= 0 then
 image.souce = "out-image.jpg"
elseif datafield value= 1 then
image.souce = "in-image.jpg"
elseifd datafield value= 2 then  
image.souce = "locked-image.jpg"
end if

I hope you understand what I am trying to say.

Thanks for your help.
======================================
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" AllowPaging="True" ShowFooter="True"
           
runat="server" AutoGenerateColumns="False" AllowSorting="True" PageSize="3"
           
GridLines="None" CellPadding="0" AllowMultiRowSelection="true">
           
<MasterTableView ShowFooter="True">
               
<Columns>
                   
<telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" FooterText="CheckBoxSelect footer" />
                   
<telerik:GridImageColumn DataType="System.String" DataImageUrlFields="CustomerID" DataImageUrlFormatString="IMG/{0}.jpg"
                     
AlternateText="Customer image" DataAlternateTextField="ContactName" ImageAlign="Middle"
                     
ImageHeight="110px" ImageWidth="90px"
                     
HeaderText="Image Column" FooterText="ImageColumn footer" />
                    <telerik:GridBoundColumn FooterText="BoundColumn footer" UniqueName="ContactTitle"
                        SortExpression="ContactTitle" HeaderText="Bound
<br/>Column" DataField="ContactTitle">
                   
</telerik:GridBoundColumn>
                    <telerik:GridButtonColumn FooterText="LinkButtonColumn footer" DataTextFormatString="Remove selection"
                        UniqueName="column1" HeaderText="LinkButton
<br/>Column" CommandName="Deselect"
                        DataTextField="CustomerID">
                   
</telerik:GridButtonColumn>
                    <telerik:GridButtonColumn FooterText="ImageButtonColumn
<br/>footer" DataTextFormatString="Select {0}"
                        ButtonType="ImageButton" UniqueName="column" HeaderText="ImageButton
<br/>Column" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                        CommandName="Select" DataTextField="CustomerID" ImageUrl="~/Common/Img/Icons/Grid.gif">
                   
</telerik:GridButtonColumn>
                    <telerik:GridHyperLinkColumn FooterText="HyperLinkColumn footer" DataTextFormatString="Search Google for '{0}'"
                        DataNavigateUrlFields="CompanyName" UniqueName="CompanyName" DataNavigateUrlFormatString="http://www.google.com/search?hl=en&amp;q={0}&amp;btnG=Google+Search"
                        HeaderText="HyperLink
<br/>Column" DataTextField="CompanyName">
                   
</telerik:GridHyperLinkColumn>
                   
<telerik:GridCheckBoxColumn UniqueName="GridCheckBoxColumn" DataField="Bool" HeaderText="CheckBox Column" FooterText="CheckBox column footer" />
                   
<telerik:GridTemplateColumn UniqueName="TemplateColumn" SortExpression="CompanyName"
                       
InitializeTemplatesFirst="false">
                       
<FooterTemplate>
                            Template column footer
</FooterTemplate>
                       
<FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />
                       
<HeaderTemplate>
                           
<table id="Table1" cellspacing="0" style="width:240px;" class="myTable">
                               
<tr>
                                   
<td colspan="2" align="center">
                                       
<b>Contact details</b></td>
                               
</tr>
                               
<tr>
                                   
<td style="width: 50%">
<asp:LinkButton CssClass="Button" ID="btnContName" Text="Contact name" ToolTip="Sort by ContactName"
CommandName='Sort' CommandArgument='ContactName' runat="server" /></td>
                                   
<td style="width: 50%">
<asp:LinkButton CssClass="Button" ID="btnContTitle" Text="Contact title" ToolTip="Sort by ContactTitle"
CommandName='Sort' CommandArgument='ContactTitle' runat="server" /></td>
                               
</tr>
                           
</table>
                       
</HeaderTemplate>
                       
<ItemTemplate>
                           
<table cellspacing="0" width="100%" class="myTable">
                               
<tr>
                                   
<td style="width: 50%">
                                       
<%# Eval("ContactName") %>
                                   
</td>
                                   
<td style="width: 50%">
                                       
<%# Eval("ContactTitle") %>
                                   
</td>
                               
</tr>
                           
</table>
                       
</ItemTemplate>
                       
<ItemStyle HorizontalAlign="Center" />
                   
</telerik:GridTemplateColumn>
               
</Columns>
           
</MasterTableView>
           
<ClientSettings>
               
<Selecting AllowRowSelect="true" />
           
</ClientSettings>
       
</telerik:RadGrid>



Larry
Top achievements
Rank 1
 answered on 23 Jun 2011
6 answers
306 views
I have a page with a modal radtooltip that works fine upon loading the page.  However, after a postback the tootip is not displayed.   I have set the Z-Index really high for the tooltip and  this  helped to give the modal effect by graying out my screen, but you still cannot see the tooltip.  Does anyone have a solution to this?

<telerik:RadToolTip ID="RadToolTip1" runat="server" style="z-index:10000;" Modal="true" ManualClose="true" 
        ShowEvent="FromCode" Sticky="true" Position="Center" Skin="Vista" TargetControlID="btnNew"
I have tried both ShowEvent="OnClick" and ShowEvent="FromCode"
Mark
Top achievements
Rank 1
 answered on 22 Jun 2011
10 answers
274 views
Hi Folks,

I implemented  my business logic using RadGrid and Client Side Scripting. I also enabled Paging on RadGrid.
If I check any checkboxes for pageindex=1 and then went for next records with pageindex=2 and while return back the checkbox values are
missing they are showing empty.
So Please Tell me how to hold those values for checkbox in RadGrid.
looking for suggestions
Thanking you all
Adam
Top achievements
Rank 1
 answered on 22 Jun 2011
1 answer
112 views
Dear Telerik-Support

I set up a RadGrid with SelfHierarchySettings. Everything works fine. The hierarchy will shown as expected.

Then I allow filtering on some columns. The problem is that the default filter (it.PrentId == null from Page_Load()) to show only the root items will be lost and according to this all items (also the child items) will be shown in the grid after the user fire a column filter.

How can I add the default filter (it.PrentId == null from Page_Load()) to all filter events that are fired against the grid/datasource? So witch  event is the right one to manipulate the filterExpression or filterExpressions to add a default filter before the datasource will be filtered based on this manipulated filters.

Please see my attched files.

Kind regards,
Chrsitian
Daniel
Telerik team
 answered on 22 Jun 2011
3 answers
192 views
Im unable to get javascript intellisense working for a specific controls client side API.

the control I'm working with right now is DateTimePicker.
how do I get javascript intelliesense to work with it?

none of these objects are available in intellisense

http://www.telerik.com/help/aspnet-ajax/calendar-client-side-rad-datetimepicker.html

I already added a reference to the core telerik javascript

<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Name="Telerik.Web.UI.Common.Core.js" Assembly="Telerik.Web.UI" />
    </Scripts>
</asp:ScriptManager>

I tried to add Name="Telerik.WebUI.Calendar.RadDateTimePicker.js" Assembly="Telerik.Web.UI" />

We have premium license and I looked in the source code and it has the vsdoc files for javascript intellisense but it doesn't work for me?
Daniel
Telerik team
 answered on 22 Jun 2011
1 answer
108 views
I'm building a sharepoint web part with the ability to change rotator types via the web part property interface.  Easy enough.  However, I'm having a hard time making the "rotatortype" dynamic in code.  Do you have any examples of how this could/should be done?  The web part is in c# but I see that others have used javascript to configure their rotators.  Just a basic example of how to change the rotator type should suffice.  Being a programming newb this is quite a little challenge for me. 

Thanks!
Clint
Top achievements
Rank 1
 answered on 22 Jun 2011
1 answer
150 views
Dear Telerik,

I am using RadGrid in a web application that is browsed from a touch screen monitor. It becomes very difficult for the users to scroll using the standard sized scroll bars that come up in radgrid. Can someone please advice on how to increase the scroll bar width?

Many thanks,

- Stepan.
Galin
Telerik team
 answered on 22 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?