Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
242 views
Hi,

I have a  form with RadComboBox. I have set EmptyMessage for RadComboBox. I need to keep that ComboBox focused when the page is loaded and start typing.

I tried followings.

in Page load event

1.
this.Form.DefaultFocus = RadComboBox1.ClientID;

2.
RadAjaxManager am = RadAjaxManager.GetCurrent(this);
 
am.FocusControl(RadComboBox1.ClientID + "_Input");
RadScriptManager1.SetFocus(RadComboBox1);


In 1st method RadComboBox is focused but EmptyMessge is not cleared. when we type, "EmptyMessage" also remains.

In 2nd method all work fine only in IE. but not in FireFox or Chrome.

Can anybody help regarding this matter ?.

Thank you,

Dinesh 
Helen
Telerik team
 answered on 23 Jun 2011
1 answer
420 views
Hi,

I am Srinivasa

in my project i have a problem for bind the Date form backend table to RadDatePicker in Rad Grid. But in my data Base in date column i have a empty value. 

here i am using the client side coding for bind Date data to RadDatePicker in RadGrid like the following way...

                       <telerik:RadDatePicker ID="actstart" runat="server" MaxDate='<%# Convert.ToDateTime(Eval("early_start_display")).ToString("dd/MMM/yyyy") %>' Width="100px" Calendar-ShowOtherMonthsDays="false" 
                        Calendar-ShowRowHeaders="false" DbSelectedDate='<%# Bind("actual_start") %>' DateInput-DateFormat="MM/dd/yyyy">
                       </telerik:RadDatePicker>

But it shows the error at the time of Date Column Null value in the DataBase...

Error is :

object cannot be cast from dbnull to other types

Please Help me.

Thanks

D.Srinivasa
Veli
Telerik team
 answered on 23 Jun 2011
2 answers
134 views










Dear Sir:
    I have a asp.net application and i used the radsplitter to separate top RadPane and bottom RadPane. the top panel will show up a separate web page with a grid inside. when any one of the row selected in the top pane and the client side will ask the bottom pane to show up the detail of the record.
   everything work fine when it first time show up but the problem will happen when i clicked on some of the button/links and the page will AJAX post back to server and rebind the grid again. The tool tips on the top panel's grid works fine but when i clicked on the row and the detail pane show up. the tool tips on the bottom pane will show up the error

"Rad Tool Tip manager response error
    An unknown error occurred while processing to the request on the server. the status code returned from the server was 12031"


i am not sure is it the problem of the ajaxmanager's setting for the top pane, after the row selected on the grid and the bottom pane's page will FULLY RELOAD. when i click on the control and tooltip will show up the error.

i tried to use the latest version of telerik but it still  not work.

i include some code for you to have look. i hope i can give you some help for understand for my situration. if you want then i can included my source code to you

Search_Instruction.aspx
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline" >
                   <AjaxSettings>
                         
                       <telerik:AjaxSetting AjaxControlID="grdInstruction">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="RadToolTipManager1">
                           <UpdatedControls
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="lbtnBound4Locator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="lbtnBound5Locator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="lbtnPropertyLocator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="cboBuildingLocator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="cboUnitLocator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="rtbStockMenu">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="mnuInstructionAction">
                           <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="grdInstruction" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="mnuInstructionAction" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                   </AjaxSettings>
                   <ClientEvents />
               </telerik:RadAjaxManager>
       <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" 
       OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" 
       CssClass="ToolTipCssClass"
       Animation="Resize" AnimationDuration="300"  
       ShowDelay="0" AutoCloseDelay="0"
       HideDelay="1000" Skin="Hay"
       Width="510px" Height="200px"
       ShowCallout="False"
       ContentScrolling="Auto"
       OffsetX="50" 
       OffsetY="80"
       Position="MiddleRight"  
       HideEvent="ManualClose"
       ShowEvent="OnClick"
       ManualClose="True" 
       meta:resourcekey="RadToolTipManager1Resource1" onclientresponseerror="ToolTipManager_OnClientResponseError" >
   </telerik:RadToolTipManager>

Search_Instruction.aspx.cs

protected void grdInstruction_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridHeaderItem)
    {
        GridHeaderItem headerItem = (GridHeaderItem)e.Item;
    }
    else if (e.Item is GridDataItem)
    {
        GridDataItem dataItem = (GridDataItem)e.Item;
          
          
        //Control lnkOwnerName = e.Item.FindControl("lnkOwnerName");
        if (!Object.Equals(this.RadToolTipManager1, null))
        {
            if (dataItem["Owner_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Owner_Name"].FindControl("lnkOwner_Name")).ClientID, "Owner_Name|" + dataItem["Owner_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["Owner_Contact_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Owner_Contact"].FindControl("lnkOwner_Contact")).ClientID, "Owner_Contact|" + dataItem["Owner_Contact_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["Occupant_ID"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Occupant_Name"].FindControl("lnkOccupant_Name")).ClientID, "Occupant_Name|" + dataItem["Occupant_ID"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["UC_Exist"].Text.Replace(" ", "") != "0")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Unit_Number_From"].FindControl("lnkUnit_Number_From")).ClientID, "Unit_Number_From|" + dataItem["Unit_Id"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["Tenant_Id"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Tenant_Name"].FindControl("lnkTenant_Name")).ClientID, "Tenant_Name|" + dataItem["Tenant_Id"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
        }
        switch (dataItem["Agency_Code"].Text.Trim())
        {
            case "SoleA":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Red";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "co-op":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Pink";
                  
                break;
            case "Multi":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Blue";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "Hearsay":
                dataItem["ClientSelectColumn"].Style["background-color"] = "ForestGreen";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                  
                break;
            case "co-op (sa)":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Gray";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                  
                break;
            case "active":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Orange";
                  
                break;
            case "cp-op(COM)":
                dataItem["ClientSelectColumn"].Style["background-color"] = "rgb(132, 112, 255)";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "Surrender":
                dataItem["ClientSelectColumn"].Style["background-color"] = "LightSkyBlue";
                break;
            case "Lead":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Maroon";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "Cobreak":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Cyan";
                break;
            case "OwnerList":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Olive";
                break;
        }
        if (dataItem["UnderOffer"].Text.Trim() == "1")
        {
            dataItem["ClientSelectColumn"].Style["background-color"] = "Yellow";
        }
    }
}



CH
Top achievements
Rank 1
 answered on 23 Jun 2011
1 answer
83 views
Hi!

In week view I just point on the start time-slot and drag down to my desired en-time to make an appointment.
But how do i accomplish the same thing in month view? Multi selecting days doesn´t work.
I need this feature to let my employee select their vacation days.

Any ideas?

I'm using Telerik v.2011.1.519.40

Sincerely, Thomas
Veronica
Telerik team
 answered on 23 Jun 2011
5 answers
120 views
Guys,
When I use oRotator.set_currentItemIndex(newIndex); there is no animation. Is it possible to have an animation with currentItemIndex method?

Thanks!
Niko
Telerik team
 answered on 23 Jun 2011
1 answer
158 views
Hi,

I have a RadCombo inside a RadGrid. I am using RadCombo inside a templated column so that user can select any value without changing the Grid mode to Edit. My Goal is to update the server information asyncronously when the user changes the grid value.

I have the onCLientSelectedIndexChange event functional. But I need the Primary Key from the Row.

Any suggestions on How i can achieve this behavior?
Thanks,
Navneet


Princy
Top achievements
Rank 2
 answered on 23 Jun 2011
1 answer
227 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
111 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
72 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.6K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?