RadWindow Will Not Close On Remote Server

4 posts, 0 answers
  1. Matt
    Matt avatar
    97 posts
    Member since:
    Jun 2012

    Posted 23 Oct 2018 Link to this post

    On my local machine, I can close a RadWindow by double-clicking on a grid row (also passing arguments)... but on the remote server, the RadWindow is not closing. Here is the parent page:

    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Transition.aspx.cs" Inherits="bccwfm.PWD.Transition" %>
    <asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Main" runat="server">
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <asp:PlaceHolder runat="server">       
            <script type="text/javascript" src="<%: ResolveUrl("~/Scripts/jquery.corner.js")%>"></script>
        </asp:PlaceHolder>
        <script type="text/javascript">
            $(document).ready(function () {
                $(".box").corner();
     
                try {
                    $find("<%=RB_PersonNumberSearch.ClientID %>").set_enabled(false);
                    $find("<%=RCB_Jobs.ClientID %>").disable();
                    $find("<%=RCB_MLChecked.ClientID %>").disable();
                    $find("<%=RCB_MLApproved.ClientID %>").disable();
                    $find("<%=RMTB_CurrentCC.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot4.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot5.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot6.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot10.ClientID %>").disable();
                    $find("<%=RMTB_CurrentMailcode.ClientID %>").disable();
                    $find("<%=RB_CurrentCCSearch.ClientID %>").set_enabled(false);
                    $find("<%=RB_CurrentFCMSearch.ClientID %>").set_enabled(false);
                    $find("<%=RNTB_CurrentHours.ClientID %>").disable();
                    $find("<%=RMTB_NewCC.ClientID %>").disable();
                    $find("<%=RCB_NewDot4.ClientID %>").disable();
                    $find("<%=RCB_NewDot5.ClientID %>").disable();
                    $find("<%=RCB_NewDot6.ClientID %>").disable();
                    $find("<%=RCB_NewDot10.ClientID %>").disable();
                    $find("<%=RMTB_NewMailcode.ClientID %>").disable();
                    $find("<%=RB_NewCCSearch.ClientID %>").set_enabled(false);
                    $find("<%=RB_NewFCMSearch.ClientID %>").set_enabled(false);
                    $find("<%=RNTB_NewHours.ClientID %>").disable();
                    $find("<%=RDP_EffectiveDate.ClientID %>").set_enabled(false);
                    $find("<%=RCB_EmailSearch.ClientID %>").disable();
                    $find("<%=RLB_Addresses.ClientID %>").set_enabled(false);
                    $find("<%=RB_Submit.ClientID %>").set_enabled(false);
                    $find("<%=RB_Reset.ClientID %>").set_enabled(false);
                }
                catch (err) {
                    // DO NOTHING
                }
            });
     
            function resetform(arg) {
                window.location.href = "Transition.aspx";
            };
     
           function pageLoad(sender, args) {
                if (args.get_isPartialLoad()) {
                    if ($find("<%=RMTB_CurrentCC.ClientID %>").get_value() != "") {
                        ToggleColor2("#l_c_cc", "true");
                    }
                    if ($find("<%=RCB_CurrentDot4.ClientID %>").get_value() != "") {
                        ToggleColor2("#l_c_dot4", "true");
                    }
                    if ($find("<%=RCB_CurrentDot5.ClientID %>").get_value() != "") {
                        ToggleColor2("#l_c_dot5", "true");
                    }
                    if ($find("<%=RCB_CurrentDot6.ClientID %>").get_value() != "") {
                        ToggleColor2("#l_c_dot5", "true");
                    }
                    if ($find("<%=RCB_CurrentDot10.ClientID %>").get_value() != "") {
                        ToggleColor2("#l_c_dot10", "true");
                    }
                    if ($find("<%=RMTB_CurrentMailcode.ClientID %>").get_value() != "") {
                        ToggleColor2("#l_c_mailcode", "true");
                    }
                }
            }
     
            function Add_C_CC(sender, args) {
                var RMTB_CurrentCC = $find("<%=RMTB_CurrentCC.ClientID %>");
                try {
                    var selectedValue = args._item.get_value();
                    RMTB_CurrentCC.set_value(selectedValue);
                }
                catch (err) {
                    // DO NOTHING
                }
                finally {
                    ToggleColor("#c_cc", "true");
                    ToggleColor2("#l_c_cc", "true");
                    ToggleColor2("#l_c_dot4", "true");
                    ToggleColor2("#l_c_dot5", "true");
                    ToggleColor2("#l_c_dot6", "true");
                    ToggleColor2("#l_c_dot10", "true");
                    ToggleColor2("#l_c_mailcode", "true");
                }
            };
     
            function Add_N_CC(sender, args) {
                var RMTB_NewCC = $find("<%=RMTB_NewCC.ClientID %>");
                try {
                    var selectedValue = args._item.get_value();
                    RMTB_NewCC.set_value(selectedValue);
                }
                catch (err) {
                    // DO NOTHING
                }
                finally {
                    ToggleColor("#n_cc", "true");
                    ToggleColor2("#l_n_cc", "true");
                    ToggleColor2("#l_n_dot4", "true");
                    ToggleColor2("#l_n_dot5", "true");
                    ToggleColor2("#l_n_dot6", "true");
                    ToggleColor2("#l_n_dot10", "true");
                    ToggleColor2("#l_n_mailcode", "true");
                }
            };
     
            function ToggleColor(control, action) {
                if (action == "false") {
                    $(control).css("color", "#E31932");
                    $(control).css("font-weight", "Bold");
                }
                else {
                    $(control).css("color", "#000000");
                    $(control).css("font-weight", "Normal");
                }
            };
     
            function ToggleColor2(control, action) {
                if (action == "false") {
                    $(control).css("color", "#E31932");
                }
                else if (action == "true") {
                    $(control).css("color", "#00B300");
                }
                else {
                    $(control).css("color", "#000000");
                }
            };
     
            function C_CC(sender, args) {
                if ($find("<%=RB_TypeL.ClientID %>").get_checked() || $find("<%=RB_TypeB.ClientID %>").get_checked()) {
                    var cc = $find("<%=RMTB_CurrentCC.ClientID %>");
                    if (cc.get_value() == "") {
                        ToggleColor("#c_cc", "false");
                        cc.focus();
                        return args.set_cancel(true);
                    }
                    else {
                        ToggleColor("#c_cc", "true");
                        ToggleColor("#c_dot4", "true");
                        ToggleColor("#c_dot5", "true");
                        ToggleColor("#c_dot6", "true");
                        ToggleColor("#c_dot10", "true");
                        ToggleColor("#c_mailcode", "true");
                        var c_dot10 = $find("<%=RCB_CurrentDot10.ClientID %>");
                        if (c_dot10.get_value() == "") {
                            ToggleColor2("#l_c_cc", "true");
                            ToggleColor2("#l_c_dot4", "true");
                            ToggleColor2("#l_c_dot5", "true");
                            ToggleColor2("#l_c_dot6", "true");
                            ToggleColor2("#l_c_dot10", "true");
                            ToggleColor2("#l_c_mailcode", "true");
                        }
                        else {
                            ToggleColor2("#l_c_cc", "false");
                            ToggleColor2("#l_c_dot4", "false");
                            ToggleColor2("#l_c_dot5", "false");
                            ToggleColor2("#l_c_dot6", "false");
                            ToggleColor2("#l_c_dot10", "false");
                            ToggleColor2("#l_c_mailcode", "false");
                        }
                    }
                }
                else {
                    return args.set_cancel(true);
                }
            };
     
            function N_CC(sender, args) {
                if ($find("<%=RB_TypeL.ClientID %>").get_checked() || $find("<%=RB_TypeB.ClientID %>").get_checked()) {
                    var cc = $find("<%=RMTB_NewCC.ClientID %>");
                    if (cc.get_value() == "") {
                        ToggleColor("#n_cc", "false");
                        cc.focus();
                        return args.set_cancel(true);
                    }
                    else {
                        ToggleColor("#n_cc", "true");
                        ToggleColor("#n_dot4", "true");
                        ToggleColor("#n_dot5", "true");
                        ToggleColor("#n_dot6", "true");
                        ToggleColor("#n_dot10", "true");
                        ToggleColor("#n_mailcode", "true");
                        var n_dot10 = $find("<%=RCB_NewDot10.ClientID %>");
                        if (n_dot10.get_value() == "") {
                            ToggleColor2("#l_n_cc", "true");
                            ToggleColor2("#l_n_dot4", "true");
                            ToggleColor2("#l_n_dot5", "true");
                            ToggleColor2("#l_n_dot6", "true");
                            ToggleColor2("#l_n_dot10", "true");
                            ToggleColor2("#l_n_mailcode", "true");
                        }
                        else {
                            ToggleColor2("#l_n_cc", "false");
                            ToggleColor2("#l_n_dot4", "false");
                            ToggleColor2("#l_n_dot5", "false");
                            ToggleColor2("#l_n_dot6", "false");
                            ToggleColor2("#l_n_dot10", "false");
                            ToggleColor2("#l_n_mailcode", "false");
                        }
                    }
                }
                else {
                    return args.set_cancel(true);
                }
            };
     
            function RevertColor(sender, args) {
                var control = sender.get_id();
                if (control.indexOf("RB_Type") >= 0) {
                    ToggleColor2("#l_types", "true");
                }
                if (control.indexOf("Associate") >= 0) {
                    ToggleColor("#a", "true");
                    ToggleColor2("#l_a", "true");
                }
                if (control.indexOf("Jobs") >= 0) {
                    ToggleColor("#jc", "true");
                    ToggleColor2("#l_jc", "true");
                }
                if (control.indexOf("MLChecked") >= 0) {
                    ToggleColor("#mlc", "true");
                    ToggleColor2("#l_mlc", "true");
                }
                if (control.indexOf("MLApproved") >= 0) {
                    ToggleColor("#mla", "true");
                    ToggleColor2("#l_mla", "true");
                }
                if (control.indexOf("CurrentCC") >= 0) {
                    ToggleColor("#c_cc", "true");
                    ToggleColor2("#l_c_cc", "true");
                    ToggleColor2("#l_c_dot4", "true");
                    ToggleColor2("#l_c_dot5", "true");
                    ToggleColor2("#l_c_dot6", "true");
                    ToggleColor2("#l_c_dot10", "true");
                    ToggleColor2("#l_c_mailcode", "true");
                }
                if (control.indexOf("CurrentDot4") >= 0) {
                    ToggleColor("#c_dot4", "true");
                    ToggleColor2("#l_c_dot4", "true");
                }
                if (control.indexOf("CurrentDot5") >= 0) {
                    ToggleColor("#c_dot5", "true");
                    ToggleColor2("#l_c_dot5", "true");
                }
                if (control.indexOf("CurrentDot6") >= 0) {
                    ToggleColor("#c_dot6", "true");
                    ToggleColor2("#l_c_dot6", "true");
                }
                if (control.indexOf("CurrentDot10") >= 0) {
                    ToggleColor("#c_dot10", "true");
                    ToggleColor2("#l_c_dot10", "true");
                    ToggleColor2("#l_c_cc", "true");
                }
                if (control.indexOf("CurrentFCM") >= 0) {
                    ToggleColor("#c_fcm", "true");
                    ToggleColor2("#l_c_fcm", "true");
                }
                if (control.indexOf("CurrentHours") >= 0) {
                    ToggleColor("#c_hours", "true");
                    ToggleColor2("#l_c_hours", "true");
                }
                if (control.indexOf("NewCC") >= 0) {
                    ToggleColor("#n_cc", "true");
                    ToggleColor2("#l_n_cc", "true");
                    ToggleColor2("#l_n_dot4", "true");
                    ToggleColor2("#l_n_dot5", "true");
                    ToggleColor2("#l_n_dot6", "true");
                    ToggleColor2("#l_n_dot10", "true");
                    ToggleColor2("#l_n_mailcode", "true");
                }
                if (control.indexOf("NewDot4") >= 0) {
                    ToggleColor("#n_dot4", "true");
                    ToggleColor2("#l_n_dot4", "true");
                }
                if (control.indexOf("NewDot5") >= 0) {
                    ToggleColor("#n_dot5", "true");
                    ToggleColor2("#l_n_dot5", "true");
                }
                if (control.indexOf("NewDot6") >= 0) {
                    ToggleColor("#n_dot6", "true");
                    ToggleColor2("#l_n_dot6", "true");
                }
                if (control.indexOf("NewDot10") >= 0) {
                    ToggleColor("#n_dot10", "true");
                    ToggleColor2("#l_n_dot10", "true");
                    ToggleColor2("#l_n_cc", "true");
                }
                if (control.indexOf("NewFCM") >= 0) {
                    ToggleColor("#n_fcm", "true");
                    ToggleColor2("#l_n_fcm", "true");
                }
                if (control.indexOf("NewHours") >= 0) {
                    ToggleColor("#n_hours", "true");
                    ToggleColor2("#l_n_hours", "true");
                }
                if (control.indexOf("Addresses") >= 0) {
                    $("#emailsearch").css("color", "#000000");
                };
                if (control.indexOf("EffectiveDate") >= 0) {
                    ToggleColor("#edate", "true");
                    ToggleColor2("#l_edate", "true");
                }
            };
     
            function RevertButtons(sender, args) {
                var tl = $find("<%=RB_TypeL.ClientID %>");
                var tb = $find("<%=RB_TypeB.ClientID %>");
                var th = $find("<%=RB_TypeH.ClientID %>");
                $telerik.$(tl.get_element()).css("font-weight", "Normal");
                $telerik.$(tb.get_element()).css("font-weight", "Normal");
                $telerik.$(th.get_element()).css("font-weight", "Normal");
                ToggleColor2("#l_types", "true");
            };
     
            function ResetEmailSearch(sender, args) {
                $("#emailsearch").css("color", "#000000");
            };
     
            function ClientSubmit(sender, args) {
                var tl = $find("<%=RB_TypeL.ClientID %>");
                var tb = $find("<%=RB_TypeB.ClientID %>");
                var th = $find("<%=RB_TypeH.ClientID %>");
                var a = $find("<%=RTB_Associate.ClientID %>");
                var jc = $find("<%=RCB_Jobs.ClientID %>");
                var mlc = $find("<%=RCB_MLChecked.ClientID %>");
                var mla = $find("<%=RCB_MLApproved.ClientID %>");
                var c_cc = $find("<%=RMTB_CurrentCC.ClientID %>");
                var c_dot10 = $find("<%=RCB_CurrentDot10.ClientID %>");
                var c_mailcode= $find("<%=RMTB_CurrentMailcode.ClientID %>");
                var c_fcm = $find("<%=RTB_CurrentFCM.ClientID %>");
                var c_hours = $find("<%=RNTB_CurrentHours.ClientID %>");
                var n_cc = $find("<%=RMTB_NewCC.ClientID %>");
                var n_dot10 = $find("<%=RCB_NewDot10.ClientID %>");
                var n_mailcode= $find("<%=RMTB_NewMailcode.ClientID %>");
                var n_fcm = $find("<%=RTB_NewFCM.ClientID %>");
                var n_hours = $find("<%=RNTB_NewHours.ClientID %>");
                var addresses = $find("<%=RLB_Addresses.ClientID %>");
                var edate = $find("<%=RDP_EffectiveDate.ClientID %>");
     
                if (!tl.get_checked() && !tb.get_checked() && !th.get_checked()) {
                    $telerik.$(tl.get_element()).css("font-weight", "Bold");
                    $telerik.$(tb.get_element()).css("font-weight", "Bold");
                    $telerik.$(th.get_element()).css("font-weight", "Bold");
                    ToggleColor2("#l_types", "false");
                    return args.set_cancel(true);
                }
                if (a.get_value() == "") {
                    ToggleColor("#a", "false");
                    ToggleColor2("#l_a", "false");
                    return args.set_cancel(true);
                }
                if (jc.get_value() == "") {
                    jc.showDropDown();
                    ToggleColor("#jc", "false");
                    ToggleColor2("#l_jc", "false");
                    return args.set_cancel(true);
                }
                if (tl.get_checked())
                {
                    if (mlc.get_value() == "") {
                        mlc.showDropDown();
                        ToggleColor("#mlc", "false");
                        ToggleColor2("#l_mlc", "false");
                        return args.set_cancel(true);
                    }
                    if (mla.get_value() == "") {
                        mla.showDropDown();
                        ToggleColor("#mla", "false");
                        ToggleColor2("#l_mla", "false");
                        return args.set_cancel(true);
                    }
                    if (c_cc.get_value() == "") {
                        c_cc.focus();
                        ToggleColor("#c_cc", "false");
                        ToggleColor2("#l_c_cc", "false");
                        return args.set_cancel(true);
                    }
                    if (c_dot10.get_text() == "") {
                        c_dot10.showDropDown();
                        ToggleColor("#c_dot10", "false");
                        ToggleColor2("#l_c_dot10", "false");
                        return args.set_cancel(true);
                    }
                    if (c_mailcode.get_value() == "") {
                        c_mailcode.focus();
                        ToggleColor("#c_mailcode", "false");
                        ToggleColor2("#l_c_mailcode", "false");
                        return args.set_cancel(true);
                    }
                    if (c_fcm.get_value() == "") {
                        ToggleColor("#c_fcm", "false");
                        ToggleColor2("#l_c_fcm", "false");
                        return args.set_cancel(true);
                    }
                    if (n_cc.get_value() == "") {
                        n_cc.focus();
                        ToggleColor("#n_cc", "false");
                        ToggleColor2("#l_n_cc", "false");
                        return args.set_cancel(true);
                    }
                    if (n_dot10.get_text() == "") {
                        n_dot10.showDropDown();
                        ToggleColor("#n_dot10", "false");
                        ToggleColor2("#l_n_dot10", "false");
                        return args.set_cancel(true);
                    }
                    if (n_mailcode.get_value() == "") {
                        n_mailcode.focus();
                        ToggleColor("#n_mailcode", "false");
                        ToggleColor2("#l_n_mailcode", "false");
                        return args.set_cancel(true);
                    }
                    if (n_fcm.get_value() == "") {
                        ToggleColor("#n_fcm", "false");
                        ToggleColor2("#l_n_fcm", "false");
                        return args.set_cancel(true);
                    }
                }
     
                if (th.get_checked()) {
                    if (c_hours.get_value() == "") {
                        c_hours.focus();
                        ToggleColor("#c_hours", "false");
                        ToggleColor2("#l_c_hours", "false");
                        return args.set_cancel(true);
                    }
                    if (n_hours.get_value() == "") {
                        n_hours.focus();
                        ToggleColor("#n_hours", "false");
                        ToggleColor2("#l_n_hours", "false");
                        return args.set_cancel(true);
                    }
                }
     
                if (tb.get_checked()) {
                    if (mlc.get_value() == "") {
                        mlc.showDropDown();
                        ToggleColor("#mlc", "false");
                        ToggleColor2("#l_mlc", "false");
                        return args.set_cancel(true);
                    }
                    if (mla.get_value() == "") {
                        mla.showDropDown();
                        ToggleColor("#mla", "false");
                        ToggleColor2("#l_mla", "false");
                        return args.set_cancel(true);
                    }
                    if (c_cc.get_value() == "") {
                        c_cc.focus();
                        ToggleColor("#c_cc", "false");
                        ToggleColor2("#l_c_cc", "false");
                        return args.set_cancel(true);
                    }
                    if (c_dot10.get_text() == "") {
                        c_dot10.showDropDown();
                        ToggleColor("#c_dot10", "false");
                        ToggleColor2("#l_c_dot10", "false");
                        return args.set_cancel(true);
                    }
                    if (c_mailcode.get_value() == "") {
                        c_mailcode.focus();
                        ToggleColor("#c_mailcode", "false");
                        ToggleColor2("#l_c_mailcode", "false");
                        return args.set_cancel(true);
                    }
                    if (c_fcm.get_value() == "") {
                        ToggleColor("#c_fcm", "false");
                        ToggleColor2("#l_c_fcm", "false");
                        return args.set_cancel(true);
                    }
                    if (n_cc.get_value() == "") {
                        n_cc.focus();
                        ToggleColor("#n_cc", "false");
                        ToggleColor2("#l_n_cc", "false");
                        return args.set_cancel(true);
                    }
                    if (n_dot10.get_text() == "") {
                        n_dot10.showDropDown();
                        ToggleColor("#n_dot10", "false");
                        ToggleColor2("#l_n_dot10", "false");
                        return args.set_cancel(true);
                    }
                    if (n_mailcode.get_value() == "") {
                        n_mailcode.focus();
                        ToggleColor("#n_mailcode", "false");
                        ToggleColor2("#l_n_mailcode", "false");
                        return args.set_cancel(true);
                    }
                    if (n_fcm.get_value() == "") {
                        ToggleColor("#n_fcm", "false");
                        ToggleColor2("#l_n_fcm", "false");
                        return args.set_cancel(true);
                    }
                    if (c_hours.get_value() == "") {
                        c_hours.focus();
                        ToggleColor("#c_hours", "false");
                        ToggleColor2("#l_c_hours", "false");
                        return args.set_cancel(true);
                    }
                    if (n_hours.get_value() == "") {
                        n_hours.focus();
                        ToggleColor("#n_hours", "false");
                        ToggleColor2("#l_n_hours", "false");
                        return args.set_cancel(true);
                    }
                }
                if (addresses.get_items().get_count() == 0) {
                    ToggleColor("#emailsearch", "false");
                    ToggleColor2("#l_emailsearch", "false");
                    return args.set_cancel(true);
                }
     
                if (edate.get_selectedDate() == null) {
                    edate.showPopup();
                    ToggleColor("#edate", "false");
                    ToggleColor2("#l_edate", "false");
                    return args.set_cancel(true);
                }
            };
     
            function RevertColor2(sender, args) {
                ToggleColor("#edate", "true");
                ToggleColor2("#l_edate", "true");
            };
     
            function SetType() {
                $find("<%=RB_PersonNumberSearch.ClientID %>").set_enabled(true);
                $find("<%=RCB_Jobs.ClientID %>").enable();
                $find("<%=RCB_MLChecked.ClientID %>").enable();
                $find("<%=RCB_MLApproved.ClientID %>").enable();
                $find("<%=RDP_EffectiveDate.ClientID %>").set_enabled(true);
                $find("<%=RCB_EmailSearch.ClientID %>").enable();
                $find("<%=RLB_Addresses.ClientID %>").set_enabled(true);
                $find("<%=RB_Submit.ClientID %>").set_enabled(true);
                $find("<%=RB_Reset.ClientID %>").set_enabled(true);
     
                 if ($find("<%=RB_TypeB.ClientID %>").get_checked()) {
                    $find("<%=RMTB_CurrentCC.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot4.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot5.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot6.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot10.ClientID %>").enable();
                    $find("<%=RMTB_CurrentMailcode.ClientID %>").enable();
                    $find("<%=RB_CurrentCCSearch.ClientID %>").set_enabled(true);
                    $find("<%=RB_CurrentFCMSearch.ClientID %>").set_enabled(true);
                    $find("<%=RMTB_NewCC.ClientID %>").enable();
                    $find("<%=RCB_NewDot4.ClientID %>").enable();
                    $find("<%=RCB_NewDot5.ClientID %>").enable();
                    $find("<%=RCB_NewDot6.ClientID %>").enable();
                    $find("<%=RCB_NewDot10.ClientID %>").enable();
                    $find("<%=RMTB_NewMailcode.ClientID %>").enable();
                    $find("<%=RB_NewFCMSearch.ClientID %>").set_enabled(true);
                    $find("<%=RB_NewCCSearch.ClientID %>").set_enabled(true);
                    $find("<%=RNTB_CurrentHours.ClientID %>").enable();
                    $find("<%=RNTB_NewHours.ClientID %>").enable();
                }
     
                if ($find("<%=RB_TypeL.ClientID %>").get_checked()) {
                    $find("<%=RMTB_CurrentCC.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot4.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot5.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot6.ClientID %>").enable();
                    $find("<%=RCB_CurrentDot10.ClientID %>").enable();
                    $find("<%=RMTB_CurrentMailcode.ClientID %>").enable();
                    $find("<%=RB_CurrentCCSearch.ClientID %>").set_enabled(true);
                    $find("<%=RB_CurrentFCMSearch.ClientID %>").set_enabled(true);
                    $find("<%=RMTB_NewCC.ClientID %>").enable();
                    $find("<%=RCB_NewDot4.ClientID %>").enable();
                    $find("<%=RCB_NewDot5.ClientID %>").enable();
                    $find("<%=RCB_NewDot6.ClientID %>").enable();
                    $find("<%=RCB_NewDot10.ClientID %>").enable();
                    $find("<%=RMTB_NewMailcode.ClientID %>").enable();
                    $find("<%=RB_NewFCMSearch.ClientID %>").set_enabled(true);
                    $find("<%=RB_NewCCSearch.ClientID %>").set_enabled(true);
                    $find("<%=RNTB_CurrentHours.ClientID %>").disable();
                    $find("<%=RNTB_NewHours.ClientID %>").disable();
                }
     
                if ($find("<%=RB_TypeH.ClientID %>").get_checked()) {
                    $find("<%=RMTB_CurrentCC.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot4.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot5.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot6.ClientID %>").disable();
                    $find("<%=RCB_CurrentDot10.ClientID %>").disable();
                    $find("<%=RMTB_CurrentMailcode.ClientID %>").disable();
                    $find("<%=RB_CurrentCCSearch.ClientID %>").set_enabled(false);
                    $find("<%=RB_CurrentFCMSearch.ClientID %>").set_enabled(false);
                    $find("<%=RMTB_NewCC.ClientID %>").disable();
                    $find("<%=RCB_NewDot4.ClientID %>").disable();
                    $find("<%=RCB_NewDot5.ClientID %>").disable();
                    $find("<%=RCB_NewDot6.ClientID %>").disable();
                    $find("<%=RCB_NewDot10.ClientID %>").disable();
                    $find("<%=RMTB_NewMailcode.ClientID %>").disable();
                    $find("<%=RB_NewFCMSearch.ClientID %>").set_enabled(false);
                    $find("<%=RB_NewCCSearch.ClientID %>").set_enabled(false);
                    $find("<%=RNTB_CurrentHours.ClientID %>").enable();
                    $find("<%=RNTB_NewHours.ClientID %>").enable();
                }
     
                if ($find("<%=RTB_Associate.ClientID %>").get_value() == "") {
                    ToggleColor2("#l_a", "false");
                }
                else {
                    ToggleColor2("#l_a", "true");
                }
                if ($find("<%=RCB_Jobs.ClientID %>").get_value() == "") {
                    ToggleColor2("#l_jc", "false");
                }
                else {
                    ToggleColor2("#l_jc", "true");
                }
                if ($find("<%=RB_TypeL.ClientID %>").get_checked()) {
                    ToggleColor2("#l_c_hours", "");
                    ToggleColor2("#l_n_hours", "");
     
                    $find("<%=RNTB_CurrentHours.ClientID %>").clear();
                    $find("<%=RNTB_NewHours.ClientID %>").clear();
                }
     
                if ($find("<%=RB_TypeH.ClientID %>").get_checked()) {
                    ToggleColor2("#l_mlc", "");
                    ToggleColor2("#l_mla", "");
                    ToggleColor2("#l_c_cc", "");
                    ToggleColor2("#l_c_dot4", "");
                    ToggleColor2("#l_c_dot5", "");
                    ToggleColor2("#l_c_dot6", "");
                    ToggleColor2("#l_c_dot10", "");
                    ToggleColor2("#l_c_mailcode", "");
                    ToggleColor2("#l_c_fcm", "");
                    ToggleColor2("#l_n_cc", "");
                    ToggleColor2("#l_n_dot4", "");
                    ToggleColor2("#l_n_dot5", "");
                    ToggleColor2("#l_n_dot6", "");
                    ToggleColor2("#l_n_dot10", "");
                    ToggleColor2("#l_n_mailcode", "");
                    ToggleColor2("#l_n_fcm", "");
                    ToggleColor2("#l_edate", "");
     
                    $find("<%=RCB_MLChecked.ClientID %>").clearSelection();
                    $find("<%=RCB_MLApproved.ClientID %>").clearSelection();
                    $find("<%=RMTB_CurrentCC.ClientID %>").clear();
                    $find("<%=RCB_CurrentDot4.ClientID %>").clearSelection();
                    $find("<%=RCB_CurrentDot5.ClientID %>").clearItems();
                    $find("<%=RCB_CurrentDot5.ClientID %>").clearSelection();
                    $find("<%=RCB_CurrentDot6.ClientID %>").clearItems();
                    $find("<%=RCB_CurrentDot6.ClientID %>").clearSelection();
                    $find("<%=RCB_CurrentDot10.ClientID %>").clearItems();
                    $find("<%=RCB_CurrentDot10.ClientID %>").clearSelection();
                    $find("<%=RMTB_CurrentMailcode.ClientID %>").clear();
                    $find("<%=RTB_CurrentFCM.ClientID %>").clear();
                    $find("<%=RMTB_NewCC.ClientID %>").clear();
                    $find("<%=RCB_NewDot4.ClientID %>").clearSelection();
                    $find("<%=RCB_NewDot5.ClientID %>").clearItems();
                    $find("<%=RCB_NewDot5.ClientID %>").clearSelection();
                    $find("<%=RCB_NewDot6.ClientID %>").clearItems();
                    $find("<%=RCB_NewDot6.ClientID %>").clearSelection();
                    $find("<%=RCB_NewDot10.ClientID %>").clearItems();
                    $find("<%=RCB_NewDot10.ClientID %>").clearSelection();
                    $find("<%=RMTB_NewMailcode.ClientID %>").clear();
                    $find("<%=RTB_CurrentFCM.ClientID %>").clear();
     
                    if ($find("<%=RNTB_CurrentHours.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_hours", "false");
                    }
                    else {
                        ToggleColor2("#l_c_hours", "true");
                    }
                    if ($find("<%=RNTB_NewHours.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_hours", "false");
                    }
                    else {
                        ToggleColor2("#l_n_hours", "true");
                    }
                }
     
                if ($find("<%=RB_TypeL.ClientID %>").get_checked() || $find("<%=RB_TypeB.ClientID %>").get_checked()) {
                    if ($find("<%=RCB_MLChecked.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_mlc", "false");
                    }
                    else {
                        ToggleColor2("#l_mlc", "true");
                    }
                    if ($find("<%=RCB_MLApproved.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_mla", "false");
                    }
                    else {
                        ToggleColor2("#l_mla", "true");
                    }
                    if ($find("<%=RMTB_CurrentCC.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_cc", "false");
                    }
                    else {
                        ToggleColor2("#l_c_cc", "true");
                    }
                    if ($find("<%=RCB_CurrentDot4.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_dot4", "false");
                    }
                    else {
                        ToggleColor2("#l_c_dot4", "true");
                    }
                    if ($find("<%=RCB_CurrentDot5.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_dot5", "false");
                    }
                    else {
                        ToggleColor2("#l_c_dot5", "true");
                    }
                    if ($find("<%=RCB_CurrentDot6.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_dot6", "false");
                    }
                    else {
                        ToggleColor2("#l_c_dot6", "true");
                    }
                    if ($find("<%=RCB_CurrentDot10.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_dot10", "false");
                    }
                    else {
                        ToggleColor2("#l_c_dot10", "true");
                    }
                    if ($find("<%=RMTB_CurrentMailcode.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_mailcode", "false");
                    }
                    else {
                        ToggleColor2("#l_c_mailcode", "true");
                    }
                    if ($find("<%=RTB_CurrentFCM.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_c_fcm", "false");
                    }
                    else {
                        ToggleColor2("#l_c_fcm", "true");
                    }
                    if ($find("<%=RMTB_NewCC.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_cc", "false");
                    }
                    else {
                        ToggleColor2("#l_n_cc", "true");
                    }
                    if ($find("<%=RCB_NewDot4.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_dot4", "false");
                    }
                    else {
                        ToggleColor2("#l_n_dot4", "true");
                    }
                    if ($find("<%=RCB_NewDot5.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_dot5", "false");
                    }
                    else {
                        ToggleColor2("#l_n_dot5", "true");
                    }
                    if ($find("<%=RCB_NewDot6.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_dot6", "false");
                    }
                    else {
                        ToggleColor2("#l_n_dot6", "true");
                    }
                    if ($find("<%=RCB_NewDot10.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_dot10", "false");
                    }
                    else {
                        ToggleColor2("#l_n_dot10", "true");
                    }
                    if ($find("<%=RMTB_NewMailcode.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_mailcode", "false");
                    }
                    else {
                        ToggleColor2("#l_n_mailcode", "true");
                    }
                    if ($find("<%=RTB_NewFCM.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_fcm", "false");
                    }
                    else {
                        ToggleColor2("#l_n_fcm", "true");
                    }
                    if ($find("<%=RNTB_NewHours.ClientID %>").get_value() == "") {
                        ToggleColor2("#l_n_new", "false");
                    }
                    else {
                        ToggleColor2("#l_n_new", "true");
                    }
                    if ($find("<%=RB_TypeB.ClientID %>").get_checked()) {
                        if ($find("<%=RNTB_CurrentHours.ClientID %>").get_value() == "") {
                            ToggleColor2("#l_c_hours", "false");
                        }
                        else {
                            ToggleColor2("#l_c_hours", "true");
                        }
                        if ($find("<%=RNTB_NewHours.ClientID %>").get_value() == "") {
                            ToggleColor2("#l_n_hours", "false");
                        }
                        else {
                            ToggleColor2("#l_n_hours", "true");
                        }
                    }
                    if ($find("<%=RDP_EffectiveDate.ClientID %>").get_selectedDate() == null) {
                        ToggleColor2("#l_edate", "false");
                    }
                }
                RevertButtons();
            };
     
            function ResetForm() {
                ToggleColor2("#l_eid", "");
                ToggleColor2("#l_a", "");
                ToggleColor2("#l_jc", "");
                ToggleColor2("#l_mlc", "");
                ToggleColor2("#l_mla", "");
                ToggleColor2("#l_c_cc", "");
                ToggleColor2("#l_c_dot4", "");
                ToggleColor2("#l_c_dot5", "");
                ToggleColor2("#l_c_dot6", "");
                ToggleColor2("#l_c_dot10", "");
                ToggleColor2("#l_c_mailcode", "");
                ToggleColor2("#l_c_fcm", "");
                ToggleColor2("#l_n_cc", "");
                ToggleColor2("#l_n_dot4", "");
                ToggleColor2("#l_n_dot5", "");
                ToggleColor2("#l_n_dot6", "");
                ToggleColor2("#l_n_dot10", "");
                ToggleColor2("#l_n_mailcode", "");
                ToggleColor2("#l_n_fcm", "");
                ToggleColor2("#l_c_hours", "");
                ToggleColor2("#l_n_hours", "");
                ToggleColor2("#l_edate", "");
            };
     
            function ValidateDate(sender, args) {
                RevertColor2();
     
                if ($find("<%=RDP_EffectiveDate.ClientID %>").get_selectedDate() != null) {
                    if ($find("<%=RB_TypeL.ClientID %>").get_checked() || $find("<%=RB_TypeB.ClientID %>").get_checked()) {
                        var date = new Date($find("<%=RDP_EffectiveDate.ClientID %>").get_selectedDate());
                        if (date.getDay() != 1) {
                            $find("<%=RDP_EffectiveDate.ClientID %>").clear();
                            radalert('Policy requires that all transfers must occur on a Monday.<br/><br/>Thank you.');
                        }
                    }
                }
            };
     
            function OpenSearch(sender, eventArgs) {
                var control = sender.get_id();
                var search;
                if (control.indexOf("RB_PersonNumberSearch") >= 0) search = "Associate";
                if (control.indexOf("RB_CurrentFCM") >= 0) search = "CurrentFCM";
                if (control.indexOf("RB_NewFCM") >= 0) search = "NewFCM";
                radopen("search.aspx?search=" + search, "Search");
            };
     
            function ClientClose(sender, args) {
                var array = args.get_argument();
                if (array != null) {
                    var search = array[0];
                    var eid;
                    var associate;
                    if (search == "Associate") {
                        eid = $("#<%=HF_EmployeeID.ClientID %>");
                        associate = $find("<%=RTB_Associate.ClientID %>");
                        ToggleColor("#a", "true");
                        ToggleColor2("#l_a", "true");
                    }
                    else if (search == "CurrentFCM") {
                        eid = $("#<%=HF_CurrentFCMEID.ClientID %>");
                        associate = $find("<%=RTB_CurrentFCM.ClientID %>");
                        ToggleColor("#c_fcm", "true");
                        ToggleColor2("#l_c_fcm", "true");
                    }
                    else if (search == "NewFCM") {
                        eid = $("#<%=HF_NewFCMEID.ClientID %>");
                        associate = $find("<%=RTB_NewFCM.ClientID %>");
                        ToggleColor("#n_fcm", "true");
                        ToggleColor2("#l_n_fcm", "true");
                    }
                    eid.val(array[1]);
                    associate.set_value(array[2]);
                }
            };
        </script>
        </telerik:RadCodeBlock>
        <style>
            .box {
                font-family: "Segoe UI", Arial, Helvetica, sans-serif;
                font-size:12px;
                background-color:#F4F4F4;
                text-align:left;
                vertical-align:middle;
                display:table-cell;
                border:0.05em solid #7991A9;
            }
        </style>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" IsSticky="true" EnableAjaxSkinRendering="true" style="position:absolute;top:0;left:0;height:100%;width:100%;z-index: 7001"/>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RB_Review">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RB_Review" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_CurrentDot4">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot5" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_CurrentDot5">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_CurrentDot6">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_CurrentDot10">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RMTB_CurrentCC">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot4" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot5" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RB_CurrentCCSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot4" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot5" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_CurrentDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_CurrentMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_NewDot4">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot5" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_NewDot5">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_NewDot6">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RCB_NewDot10">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RMTB_NewCC">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot4" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot5" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RB_NewCCSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot4" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot5" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot6" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_NewDot10" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewCC" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RMTB_NewMailcode" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="RCB_EmailSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RLB_Addresses" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        <telerik:AjaxUpdatedControl ControlID="RCB_EmailSearch" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <div style="padding-left:5px">
            <asp:Label ID="BreadCrumbs" runat="server" Text="Pre-Workday Forms ▶ Transition" ForeColor="#0394AE" Font-Size="Larger"/>
        </div>
        <div style="position:relative;top:10px;left:10px;height:30px;width:712px;vertical-align:top;padding-top:0px">
            <div style="padding:5px 10px 10px 10px">
                <label style="font-size:14px">Please select a Transition Type and complete the appropriate fields.</label><br />
                <label style="padding-right:5px;color:#000000;font-size:14px">▶</label><label style="padding-right:5px;color:#000000;font-size:12px">Not Required</label>
                <label style="padding-right:5px;color:#E31932;font-size:14px">▶</label><label style="padding-right:5px;color:#E31932;font-size:12px">Required</label>
                <label style="padding-right:5px;color:#00B300;font-size:14px">▶</label><label style="padding-right:5px;color:#00B300;font-size:12px">Proceed</label>
            </div>
        </div>
        <br />
        <div class="box" style="position:relative;top:10px;left:10px;height:50px;width:712px;vertical-align:top;padding-top:10px" id="RequestorInfo" runat="server">
            <div class="label" style="font-weight:bold;font-size:14px;text-align:left;padding-left:10px">Requestor</div>
            <div style="float:left;padding-left:10px">
                    Requested by <a ID="RequestorNameEmail" runat="server" href="#" /> on <asp:Label ID="SubmitDate" runat="server" />
                </div>
                <div style="float:right;padding-right:10px">
                    <telerik:RadButton ID="RB_Review" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" Text="Reviewed" OnClick="RB_Review_Click" UseSubmitBehavior="false" CausesValidation="false">
                        <ToggleStates>
                            <telerik:RadButtonToggleState Text="Reviewed" PrimaryIconCssClass="rbToggleCheckboxChecked" />
                            <telerik:RadButtonToggleState Text="Review" PrimaryIconCssClass="rbToggleCheckbox" />
                        </ToggleStates>
                    </telerik:RadButton>
                </div>
        </div>
        <br />
        <table border="0" style="border-collapse:separate;border-spacing:0px;margin-left:10px;margin-top:15px">
            <tr>
                <td style="vertical-align:top">
                    <div class="box" style="height:95px;width:220px;vertical-align:top;padding-top:10px">
                        <div id="transitiontype" class="label" style="font-weight:bold;font-size:14px;text-align:left;padding-left:10px">
                            <label id="l_types" style="padding-right:5px">▶</label><a class="tooltip" href="#">Transition Type<span class="custom help" style="font-weight:normal"><img src="../Images/Help.png" alt="Help" height="32" width="32" /><em>Select the type</em>Check what type of transition you are initiating.</span></a>
                        </div>
                        <div style="padding:10px 0px 0px 10px">
                            <telerik:RadButton ID="RB_TypeL" runat="server" TabIndex="1" ButtonType="ToggleButton" ToggleType="Radio" GroupName="TT" Text="Location Only" UseSubmitBehavior="false" ToolTip="Check if only the location is changing" OnClientCheckedChanged="SetType" AutoPostBack="false" Skin="Default"/><br />
                            <telerik:RadButton ID="RB_TypeH" runat="server" TabIndex="2" ButtonType="ToggleButton" ToggleType="Radio" GroupName="TT" Text="Hours Only" UseSubmitBehavior="false" ToolTip="Check if only the hours are changing" OnClientCheckedChanged="SetType" AutoPostBack="false" Skin="Default"/><br />
                            <telerik:RadButton ID="RB_TypeB" runat="server" TabIndex="3" ButtonType="ToggleButton" ToggleType="Radio" GroupName="TT" Text="Location & Hours" UseSubmitBehavior="false" ToolTip="Check if the location and hours are changing" OnClientCheckedChanged="SetType" AutoPostBack="false" Skin="Default"/>
                        </div>
                    </div>
                    <br />
                    <div class="box" style="height:340px;width:220px;vertical-align:top;padding-top:10px">
                        <div class="label" style="font-weight:bold;font-size:14px;text-align:left;padding-left:10px">
                            <a class="tooltip" href="#">Associate Details<span class="custom help" style="font-weight:normal"><img src="../Images/Help.png" alt="Help" height="32" width="32" /><em>Select the associate</em>Enter the person number or type in the name to retrieve the associate's current information.</span></a>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_a" style="padding-right:5px">▶</label><label id="a">Associate Name:</label>
                            <telerik:RadButton ID="RB_PersonNumberSearch" runat="server" Image-EnableImageButton="true" Image-ImageUrl="~/Images/search.png" Image-HoveredImageUrl="~/Images/search_over.png" Image-IsBackgroundImage="true" Width="20px" Height="20px" TabIndex="9" ToolTip="Click to search for an associate" UseSubmitBehavior="false" OnClientClicked="OpenSearch" AutoPostBack="false" style="margin-left:5px"/>
                            <telerik:RadTextBox ID="RTB_Associate" runat="server" ReadOnly="true" AutoPostBack="false" Width="190px" EmptyMessage="Click the magnifying icon" />
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_jc" style="padding-right:5px">▶</label><label id="jc">Job:</label><br />
                               <telerik:RadComboBox ID="RCB_Jobs" runat="server" AutoPostBack="false" EmptyMessage="Select a job" AllowCustomText="false" MarkFirstMatch="true" EnableLoadOnDemand="true" OnClientDropDownClosed="RevertColor" EnableItemCaching="true" MinFilterLength="5" CausesValidation="false" TabIndex="7" Width="200px" ToolTip="Select a job" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div><br />
                        <div style="padding:5px 10px 5px 10px">
                           <label id="l_mlc" style="padding-right:5px">▶</label> <label id="mlc">Has the Market Leader checked with the new manager for vacation conflicts within the new team?</label><br />
                            <telerik:RadComboBox ID="RCB_MLChecked" runat="server" EmptyMessage="Select Yes/No" TabIndex="8" AutoPostBack="false" Width="190px" ToolTip="Select as appropriate" OnClientDropDownClosed="RevertColor" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                                <Items>
                                    <telerik:RadComboBoxItem Value="1" Text="Yes" />
                                    <telerik:RadComboBoxItem Value="0" Text="No" />
                                </Items>
                            </telerik:RadComboBox>
                        </div><br />
                        <div style="padding:5px 10px 20px 10px">
                            <label id="l_mla" style="padding-right:5px">▶</label><label id="mla">Has the Market Leader approved the associate vacation schedule?</label><br />
                            <telerik:RadComboBox ID="RCB_MLApproved" runat="server" EmptyMessage="Select Yes/No" TabIndex="9" AutoPostBack="false" Width="190px" ToolTip="Select as appropriate" OnClientDropDownClosed="RevertColor" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                                <Items>
                                    <telerik:RadComboBoxItem Value="1" Text="Yes" />
                                    <telerik:RadComboBoxItem Value="0" Text="No" />
                                </Items>
                            </telerik:RadComboBox>
                        </div>
                    </div>
                </td>
                <td style="width:20px"></td>
                <td>
                    <div class="box" style="height:460px;width:220px;vertical-align:top;padding-top:10px">
                        <div class="label" style="font-weight:bold;font-size:14px;text-align:left;padding-left:10px">
                            <a class="tooltip" href="#">Current<span class="custom help" style="font-weight:normal"><img src="../Images/Help.png" alt="Help" height="32" width="32" /><em>Provide the current location</em>Enter the 10 digit co/cc or eLedger and click "Search" or select the Division, Region, Market, and Location Name.<br /><br />Enter the current manager's person number or type in the name.</span></a>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_cc" style="padding-right:5px">▶</label><label id="c_cc">Location Co/CC or eLedger:</label>
                            <telerik:RadButton ID="RB_CurrentCCSearch" runat="server" Image-EnableImageButton="true" Image-ImageUrl="~/Images/search.png" Image-HoveredImageUrl="~/Images/search_over.png" Image-IsBackgroundImage="true" Width="20px" Height="20px" TabIndex="10" ToolTip="Click to search for a location" OnClick="RB_CurrentCCSearch_Click" OnClientClicking="C_CC" UseSubmitBehavior="false" style="margin-left:5px" />
                            <telerik:RadMaskedTextBox ID="RMTB_CurrentCC" runat="server" Mask="###/#######" Width="120px" TabIndex="11" OnTextChanged="RMTB_CurrentCC_TextChanged" ClientEvents-OnValueChanged="C_CC" ClientEvents-OnKeyPress="RevertColor" ToolTip="Key or paste a valid location co/cc or eLedger" CssClass="hvr-glow"/>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_dot4" style="padding-right:5px">▶</label><label id="c_dot4">Division:</label><br />
                            <telerik:RadComboBox ID="RCB_CurrentDot4" runat="server" EmptyMessage="Select a division" TabIndex="12" OnSelectedIndexChanged="RCB_CurrentDot4_SelectedIndexChanged" OnClientDropDownClosed="RevertColor" Width="200px" ToolTip="Select the division" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_dot5" style="padding-right:5px">▶</label><label id="c_dot5">Region:</label><br />
                            <telerik:RadComboBox ID="RCB_CurrentDot5" runat="server" EmptyMessage="Select a region" TabIndex="13" onselectedindexchanged="RCB_CurrentDot5_SelectedIndexChanged" OnClientDropDownClosed="RevertColor" Width="200px" ToolTip="Select the region" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_dot6" style="padding-right:5px">▶</label><label id="c_dot6">Market:</label><br />
                            <telerik:RadComboBox ID="RCB_CurrentDot6" runat="server" TabIndex="14" EmptyMessage="Select a market" onselectedindexchanged="RCB_CurrentDot6_SelectedIndexChanged" OnClientDropDownClosed="RevertColor" Width="200px" ToolTip="Select the market" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_dot10" style="padding-right:5px">▶</label><label id="c_dot10">Location Name:</label><br />
                            <telerik:RadComboBox ID="RCB_CurrentDot10" runat="server"  TabIndex="15" EmptyMessage="Select a location name" onselectedindexchanged="RCB_CurrentDot10_SelectedIndexChanged" OnClientSelectedIndexChanged="Add_C_CC" OnClientDropDownClosed="RevertColor" Width="200px" ToolTip="Select the location name" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_mailcode" style="padding-right:5px">▶</label><label id="c_mailcode">Mailcode:</label><br />
                            <telerik:RadMaskedTextBox ID="RMTB_CurrentMailcode" runat="server" Mask="aaa-aaa-aa-aa" Width="140px" TabIndex="16" ToolTip="Key or paste a valid location mailcode" ClientEvents-OnKeyPress="RevertColor" CssClass="hvr-glow"/>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_fcm" style="padding-right:5px">▶</label><label id="c_fcm">Manager Name:</label>
                            <telerik:RadButton ID="RB_CurrentFCMSearch" runat="server" Image-EnableImageButton="true" Image-ImageUrl="~/Images/search.png" Image-HoveredImageUrl="~/Images/search_over.png" Image-IsBackgroundImage="true" Width="20px" Height="20px" TabIndex="9" ToolTip="Click to search for an associate" UseSubmitBehavior="false" OnClientClicked="OpenSearch" AutoPostBack="false" style="margin-left:5px"/>
                            <telerik:RadTextBox ID="RTB_CurrentFCM" runat="server" ReadOnly="true" AutoPostBack="false" Width="190px" EmptyMessage="Click the magnifying icon" />
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_c_hours" style="padding-right:5px">▶</label><label id="c_hours">Current Hours</label><br />
                            <telerik:RadNumericTextBox ID="RNTB_CurrentHours" runat="server" EmptyMessage="##.##" TabIndex="20" Width="200px" ToolTip="Enter appropriate hours" ClientEvents-OnKeyPress="RevertColor" AutoPostBack="false" NumberFormat-DecimalDigits="2" CssClass="hvr-glow" />
                        </div>
                    </div>
                </td>
                <td style="width:20px"></td>
                <td>
                    <div class="box" style="height:460px;width:220px;vertical-align:top;padding-top:10px">
                        <div class="label" style="font-weight:bold;font-size:14px;text-align:left;padding-left:10px">
                            <a class="tooltip" href="#">New<span class="custom help" style="font-weight:normal"><img src="../Images/Help.png" alt="Help" height="32" width="32" /><em>Provide the new location</em>Enter the 10 digit co/cc or eLedger and click "Search" or select the Division, Region, Market, and Location Name.<br /><br />Enter the new manager's person number or type in the name.</span></a>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_cc" style="padding-right:5px">▶</label><label id="n_cc">Location Co/CC or eLedger:</label>
                            <telerik:RadButton ID="RB_NewCCSearch" runat="server" Image-EnableImageButton="true" Image-ImageUrl="~/Images/search.png" Image-HoveredImageUrl="~/Images/search_over.png" Image-IsBackgroundImage="true" Width="20px" Height="20px" TabIndex="21" ToolTip="Click to search for a location" OnClick="RB_NewCCSearch_Click" OnClientClicking="N_CC" UseSubmitBehavior="false" style="margin-left:5px"/>
                            <telerik:RadMaskedTextBox ID="RMTB_NewCC" runat="server" Mask="###/#######" Width="120px" TabIndex="22" OnTextChanged="RMTB_NewCC_TextChanged" ClientEvents-OnValueChanged="N_CC" ClientEvents-OnKeyPress="RevertColor" ToolTip="Key or paste a valid location co/cc or eLedger" CssClass="hvr-glow"/>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_dot4" style="padding-right:5px">▶</label><label id="n_dot4">Division:</label><br />
                            <telerik:RadComboBox ID="RCB_NewDot4" runat="server" EmptyMessage="Select a division" TabIndex="23" OnSelectedIndexChanged="RCB_NewDot4_SelectedIndexChanged" OnClientDropDownClosed="RevertColor" AutoPostBack="true" Width="200px" ToolTip="Select the division" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_dot5" style="padding-right:5px">▶</label><label id="n_dot5">Region:</label><br />
                            <telerik:RadComboBox ID="RCB_NewDot5" runat="server" EmptyMessage="Select a region" TabIndex="24" onselectedindexchanged="RCB_NewDot5_SelectedIndexChanged" OnClientDropDownClosed="RevertColor" AutoPostBack="true" Width="200px" ToolTip="Select the region" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_dot6" style="padding-right:5px">▶</label><label id="n_dot6">Market:</label><br />
                            <telerik:RadComboBox ID="RCB_NewDot6" runat="server"  TabIndex="25" EmptyMessage="Select a location name" onselectedindexchanged="RCB_NewDot6_SelectedIndexChanged" OnClientDropDownClosed="RevertColor" AutoPostBack="true" Width="200px" ToolTip="Select the location name" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_dot10" style="padding-right:5px">▶</label><label id="n_dot10">Location Name:</label><br />
                            <telerik:RadComboBox ID="RCB_NewDot10" runat="server"  TabIndex="26" EmptyMessage="Select a location name" onselectedindexchanged="RCB_NewDot10_SelectedIndexChanged" OnClientSelectedIndexChanged="Add_N_CC" OnClientDropDownClosed="RevertColor" AutoPostBack="true" Width="200px" ToolTip="Select the location name" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_mailcode" style="padding-right:5px">▶</label><label id="n_mailcode">Mailcode:</label><br />
                            <telerik:RadMaskedTextBox ID="RMTB_NewMailcode" runat="server" Mask="aaa-aaa-aa-aa" Width="140px" TabIndex="27" ToolTip="Key or paste a valid location mailcode" ClientEvents-OnKeyPress="RevertColor" CssClass="hvr-glow"/>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_fcm" style="padding-right:5px">▶</label><label id="n_fcm">Manager Name:</label>
                            <telerik:RadButton ID="RB_NewFCMSearch" runat="server" Image-EnableImageButton="true" Image-ImageUrl="~/Images/search.png" Image-HoveredImageUrl="~/Images/search_over.png" Image-IsBackgroundImage="true" Width="20px" Height="20px" TabIndex="9" ToolTip="Click to search for an associate" UseSubmitBehavior="false" OnClientClicked="OpenSearch" AutoPostBack="false" style="margin-left:5px"/>
                            <telerik:RadTextBox ID="RTB_NewFCM" runat="server" ReadOnly="true" AutoPostBack="false" Width="190px" EmptyMessage="Click the magnifying icon" />
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label id="l_n_hours" style="padding-right:5px">▶</label><label id="n_hours">New Hours</label><br />
                            <telerik:RadNumericTextBox ID="RNTB_NewHours" runat="server" EmptyMessage="##.##" TabIndex="31" Width="200px" ToolTip="Enter appropriate hours" ClientEvents-OnKeyPress="RevertColor" AutoPostBack="false" NumberFormat-DecimalDigits="2" CssClass="hvr-glow" />
                        </div>
                    </div>
                </td>
            </tr>
            <tr style="height:25px">
                <td colspan="5"></td>
            </tr>
            <tr>
                <td colspan="3">
                    <div class="box" style="height:240px;width:465px;vertical-align:top;padding-top:10px">
                        <div class="label" style="font-weight:bold;font-size:14px;text-align:left;padding-left:10px">
                            <a id="emailsearch" class="tooltip" href="#">Email Notifications<span class="custom help" style="font-weight:normal"><img src="../Images/Help.png" alt="Help" height="32" width="32" /><em>Market AA Notifications</em>Enter the last, then first name of the Market AA(s) to be notified by email.</span></a>
                        </div>
                        <div style="padding:5px 10px 5px 10px">
                            <label>Type in the last then first name of your Market AA and select appropriately.<br /><br />If the email address is displayed, you can hit 'Enter' or 'Tab.</label><br />
                            <telerik:RadComboBox ID="RCB_EmailSearch" runat="server" AutoPostBack="true" TabIndex="32" EmptyMessage="Type last, first name" AllowCustomText="true" MarkFirstMatch="true" EnableLoadOnDemand="true" EnableItemCaching="true" MinFilterLength="5" OnItemsRequested="RCB_EmailSearch_ItemsRequested" OnSelectedIndexChanged="RCB_EmailSearch_SelectedIndexChanged" OnClientSelectedIndexChanged="ResetEmailSearch" OnClientTextChange="ResetEmailSearch" CausesValidation="false" Width="400px" ToolTip="Start typing and make a selection" CssClass="hvr-glow">
                                <ExpandAnimation Type="OutExpo" Duration="300" />
                                <CollapseAnimation Type="InExpo" Duration="200" />
                            </telerik:RadComboBox>
                        </div>
                        <div style="padding:5px 10px 0px 10px">
                            <label>Selected Email Addresses:</label><br />
                            <telerik:RadListBox ID="RLB_Addresses" runat="server" AutoPostBack="false" TabIndex="33" EmptyMessage="Type last, first name above<br/>and make selection" AllowDelete="true" Width="400px" Height="100px" ToolTip="To delete, select and hit X"/>
                        </div>
                    </div>
                </td>
                <td style="width:20px"></td>
                <td style="vertical-align:top;text-align:center">
                    <div style="text-align:left;padding-left:10px">
                        <label id="l_edate" style="padding-right:5px">▶</label><label id="edate">Effective Date:</label><br />
                        <telerik:RadDatePicker ID="RDP_EffectiveDate" runat="server" ShowPopupOnFocus="true" Culture="en-US" TabIndex="34" AutoPostBack="false" ClientEvents-OnDateSelected="RevertColor2"  ToolTip="Select a date" Width="200px" CssClass="hvr-glow">
                            <Calendar ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false" OnDayRender="Calendar1_DayRender">
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="WhiteSmoke" ItemStyle-Font-Bold="true" ItemStyle-BorderColor="Turquoise" />
                                </SpecialDays>
                            </Calendar>
                            <DateInput ID="DateInput1" runat="server" TabIndex="39" DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="false" LabelWidth="" ClientEvents-OnKeyPress="RevertColor2" ClientEvents-OnValueChanged="ValidateDate"></DateInput>
                            <DatePopupButton TabIndex="39"></DatePopupButton>
                        </telerik:RadDatePicker><br />
                        <label>Policy requires that all transfers must<br />occur on a Monday.</label>
                    </div>
                    <div style="vertical-align:top;text-align:center;padding-top:30px">
                         <telerik:RadButton ID="RB_Reset" runat="server" TabIndex="35" Text="Reset" OnClientClicked="ResetForm" CssClass="hvr-glow" style="margin-right:20px"/>
                         <telerik:RadButton ID="RB_Submit" runat="server" TabIndex="36" Text="Submit" OnClick="RB_Submit_Click" OnClientClicking="ClientSubmit" CssClass="hvr-glow"/>
                     </div>
                </td>
            </tr>
        </table>
        <br />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index:7001" >
            <Windows>
                <telerik:RadWindow ID="Attention" runat="server" VisibleTitlebar="false" VisibleStatusbar="false"/>
                <telerik:RadWindow ID="Search" runat="server" VisibleTitlebar="true" VisibleStatusbar="false" OnClientClose="ClientClose" Behaviors="Close, Move" KeepInScreenBounds="true" Width="900px" Height="580px" Title="Associate Search" />
            </Windows>
            </telerik:RadWindowManager>
         <asp:HiddenField ID="HF_EmployeeID" runat="server" ClientIDMode="Static" />
        <asp:HiddenField ID="HF_CurrentFCMEID" runat="server" ClientIDMode="Static" />
        <asp:HiddenField ID="HF_NewFCMEID" runat="server" ClientIDMode="Static" />
    </asp:Content>

     

    Here is the child page:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="bccwfm.PWD.Search" ValidateRequest="false" EnableEventValidation="false" %>
    <!DOCTYPE html>
    <head id="Head1" runat="server">
        <meta charset="utf-8" />
        <title>Associate Search</title>
        <link href="../Content/Site.css" rel="stylesheet" />
        <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <asp:PlaceHolder runat="server">       
            <script src="<%: ResolveUrl("~/Scripts/modernizr-2.6.2.js") %>"></script>
            <script src="<%: ResolveUrl("~/Scripts/jquery.js") %>"></script>
            <script src="<%: ResolveUrl("~/Scripts/jquery-ui.min.js") %>"></script>
            <script src="<%: ResolveUrl("~/Scripts/JScript.js") %>"></script>
        </asp:PlaceHolder>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.radWindow;
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow;
                    return oWindow;
                };
     
                function CancelWindow() {
                    GetRadWindow().close();
                };
     
                function RowDblClick(sender, eventArgs) {
                    var window = GetRadWindow();
                    var search = window.argument;
                    var array = new Array();
                    array[0] = getQueryVariable("search");
                    array[1] = eventArgs.getDataKeyValue("EmployeeID");
                    array[2] = eventArgs.getDataKeyValue("LastName") + ', ' + eventArgs.getDataKeyValue("FirstName");
                    window.close(array);
                };
     
                function Refresh() {
                    if ($find("<%=RTB_DisplayName.ClientID %>").get_textBoxValue().length >=3) {
                        __doPostBack('<%=RTB_DisplayName.ClientID %>', '');
                    }
                };
            </script>
        </telerik:RadCodeBlock>
    </head>
    <body>
        <form id="form1" runat="server" style="padding:10px">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server" AllowCustomErrorsRedirect="true" EnablePartialRendering="true" EnablePageMethods="true">
                <Scripts>
                    <asp:ScriptReference Name="jquery" />
                    <asp:ScriptReference Name="jquery.ui.combined" />
                </Scripts>
            </telerik:RadScriptManager>
            <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" EnableAjaxSkinRendering="true" IsSticky="true" style="position:absolute;top:0;left:0;height:100%;width:100%;z-index: 7001"/>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RTB_DisplayName">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
         <label>Search by typing in a last and/or first name. After entering 3 characters, as you type, the list will populate. After locating the associate, double-click the row.</label><br /><br />
            <label>Full Name (Last, First):</label><br />
            <telerik:RadTextBox ID="RTB_DisplayName" runat="server" EmptyMessage="ex. Penman, Matt" TabIndex="1" Width="300px" AutoPostBack="true" ToolTip="Enter the last and first name" CssClass="hvr-glow" OnKeyUp="Refresh();" OnTextChanged="RTB_DisplayName_TextChanged"/>
            <br /><br />
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" Width="98%" CellPadding="0" GridLines="None" PageSize="10" AutoGenerateColumns="false" style="margin:0px 10px 10px 0px" OnNeedDataSource="RadGrid1_NeedDataSource">
                <ClientSettings EnableRowHoverStyle="true">
                    <ClientEvents OnRowDblClick="RowDblClick" />
                </ClientSettings>
                <MasterTableView Width="100%" ClientDataKeyNames="EmployeeID,LastName,FirstName" CommandItemDisplay="Bottom">
                    <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToExcelButton="false" ShowRefreshButton="false" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" SortExpression="LastName" UniqueName="LastName" />
                        <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" UniqueName="FirstName"/>
                        <telerik:GridBoundColumn DataField="EmployeeID" HeaderText="P/N" SortExpression="EmployeeID" UniqueName="EmployeeID" />
                        <telerik:GridBoundColumn DataField="AssignmentStatus" HeaderText="Status" SortExpression="AssignmentStatus" UniqueName="AssignmentStatus" />
                        <telerik:GridBoundColumn DataField="JobName" HeaderText="JobName" SortExpression="JobName" UniqueName="JobName" />
                        <telerik:GridBoundColumn DataField="Location" HeaderText="Location" SortExpression="Location" UniqueName="Location" />
                        <telerik:GridBoundColumn DataField="CC" HeaderText="CC" SortExpression="CC" UniqueName="CC" />
                    </Columns>
                    <NoRecordsTemplate>
                        <div style="padding:10px">No associates to display.</div>
                    </NoRecordsTemplate>
                </MasterTableView>
            </telerik:RadGrid>
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" VisibleTitlebar="false" style="z-index:7001"/>
        </form>
    </body>
    </html>

     

    How can I resolve this? I suspect the answer lies with specifying a particular parent window in GetRadWindow().

    Any help would be appreciated.

     

     

  2. Matt
    Matt avatar
    97 posts
    Member since:
    Jun 2012

    Posted 23 Oct 2018 Link to this post

    The grid OnRowDlbClick is firing but that's it... I also removed the RadWindow templates, just trying to get this to work with a single RadWindow on the parent page... there has to be an easier way...
  3. Matt
    Matt avatar
    97 posts
    Member since:
    Jun 2012

    Posted 23 Oct 2018 Link to this post

    I added a simple ASP button with a basic call to close the window... it does nothing.

    <telerik:RadButton ID="CloseThis" runat="server" OnClientClicked="CloseMe();" UseSubmitBehavior="false" AutoPostBack="false" Text="Close this" />

     

    function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow) oWindow = window.radWindow;
                    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                    return oWindow;
                };
     
                function CloseMe() {
                    GetRadWindow().close();
                };
  4. Matt
    Matt avatar
    97 posts
    Member since:
    Jun 2012

    Posted 23 Oct 2018 Link to this post

    Found the problem. A javascript file was not being included/resolved, so there was a hidden javascript error.

    Ugh...

Back to Top