telerik:GridButtonColumn delete button not working in telerik:RadAjaxPanel

2 posts, 0 answers
  1. Jyosana
    Jyosana avatar
    12 posts
    Member since:
    Aug 2013

    Posted 29 Aug 2013 Link to this post

    Hello ,All

    When I press delete button on New Violation screen there are fired on Ajax error , but I am not getting any solution please provide me any solution ?

    <%@ Page Title="" Language="C#" MasterPageFile="~/DCenter/MasterPage/ClientDetail.Master" AutoEventWireup="true" CodeBehind="DCMain.aspx.cs" Inherits="ArchonixXJailDayReportingCenter.ClientDetailCenter.DCMain" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <asp:Content ID="Content3" ContentPlaceHolderID="AdminContentPlaceHolder" runat="server">
        <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
        <telerik:RadAjaxManager ID="AM" runat="server" DefaultLoadingPanelID="RALoading">
            <AjaxSettings>

                <telerik:AjaxSetting AjaxControlID="btnSearchSSN">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="radSSNSearch" />
                        <telerik:AjaxUpdatedControl ControlID="wndInmateSearch" />
                        <telerik:AjaxUpdatedControl ControlID="grdMainSSNWindows" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="grdMainSSNWindows">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdMainSSNWindows" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnRetrive">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="hdnPanel" />
                        <telerik:AjaxUpdatedControl ControlID="hdnname" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />  
                        <telerik:AjaxUpdatedControl ControlID="radServices" /> 
                        <telerik:AjaxUpdatedControl ControlID="radSSNSearch" />
                        <telerik:AjaxUpdatedControl ControlID="wndInmateSearch" />
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnClearSerach">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="hdnPanel" />
                        <telerik:AjaxUpdatedControl ControlID="hdnname" />
                        <telerik:AjaxUpdatedControl ControlID="tblCourtOrder" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />   
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                        
                        <telerik:AjaxUpdatedControl ControlID="radSSNSearch" />
                        <telerik:AjaxUpdatedControl ControlID="wndInmateSearch" />
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnPISave">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="tblPersonal" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />   
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnClientCheckinSave">
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />  
                         <telerik:AjaxUpdatedControl ControlID="radServices" />   
                         <telerik:AjaxUpdatedControl ControlID="tabServices" />            
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnCHRetrive">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="tblClientHistory" />                   
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />  
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                 
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>   
                  <telerik:AjaxSetting AjaxControlID="btnCNSave">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="tblCaseNotes" />                  
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />    
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />   
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnNVSave">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="tblNewViolation" />                   
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />    
                         <telerik:AjaxUpdatedControl ControlID="radServices" />             
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="brnRVSave">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="tblReviewViolation" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" /> 
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnClientCheckinCancel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" /> 
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                 
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnCHCancel">
                    <UpdatedControls>
                      <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="tblClientHistory" />                   
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />   
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnCNCancel">
                    <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="tblCaseNotes" />                  
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />    
                         <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />  
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                 
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnNVCancel">
                    <UpdatedControls>
                         <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="tblNewViolation" />                   
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />  
                         <telerik:AjaxUpdatedControl ControlID="radServices" />               
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnRVCancel">
                    <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="tblReviewViolation" />                 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />   
                         <telerik:AjaxUpdatedControl ControlID="radServices" />              
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>                 
                <telerik:AjaxSetting AjaxControlID="grdViolation">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="tblNewViolation" />                  
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />   
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="grdReviewViolation">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel6" />
                        <telerik:AjaxUpdatedControl ControlID="tblReviewViolation" />                   
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel7" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel5" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel4" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel3" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                         <telerik:AjaxUpdatedControl ControlID="radServices" />                   
                        <telerik:AjaxUpdatedControl ControlID="pnlValidatorSummary" />
                    </UpdatedControls>
                </telerik:AjaxSetting>          
            </AjaxSettings>

        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RALoading" runat="server" BackImageUrl="~/Images/loading.gif">
        </telerik:RadAjaxLoadingPanel>
        <style type="text/css">
            .maindrc
            {
                width: 98%;
                margin: 15px auto;
                padding: 10px;
                position: relative;
                min-height: 99%;
                background: #f5f4f4;
                padding-bottom: 30px;
            }

            .left_menu
            {
                width: 15%;
                height: auto;
                border: 1px solid #b5b5b5;
                border-radius: 5px;
            }

            .right_menu
            {
                width: 84%;
                height: auto;
                border: 1px solid #b5b5b5;
                border-radius: 5px;
            }
        </style>
        <script language="javascript" type="text/javascript">
            var ActiveTabIndex = 1;

            function ShowPanel(index) {
                var values = document.getElementById("ctl00_AdminContentPlaceHolder_hdnname").value;
                if (values == '0') {
                    alert('Please Retrive Client Information First');
                    return false;
                }
                else {

                    ActiveTabIndex = index;
                    document.getElementById("ctl00_AdminContentPlaceHolder_hdnPanel").value = ActiveTabIndex;
                    var i;
                    for (i = 1; i <= 7; i++) {
                        document.getElementById("ctl00_AdminContentPlaceHolder_pnl" + i).style.display = (i == index) ? "block" : "none";
                    }
                    SetFocusOnFirstControl(index);

                }
            }
            function SetFocusOnFirstControl(index) {

                switch (index) {
                    case 1:
                        document.getElementById('ctl00_AdminContentPlaceHolder_cmdClientType').focus(); break;
                    default:
                        break;
                }
            }
            function ClearPanel(index) {
                var i;
                for (i = 1; i <= 7; i++) {
                    document.getElementById("ctl00_AdminContentPlaceHolder_pnl" + i).style.display = (i == index) ? "block" : "none";
                }
            }
            function CheckValidation() {

                var caseNo = document.getElementById('ctl00_AdminContentPlaceHolder_txtCase').value;
                var SSNNo = document.getElementById('ctl00_AdminContentPlaceHolder_txtSSN').value;
                var txtLastNameSearch = document.getElementById('ctl00_AdminContentPlaceHolder_txtLastName').value;
                var txtFirstNameSearch = document.getElementById('ctl00_AdminContentPlaceHolder_txtFirstName').value;
                var txtMiddleNameSearch = document.getElementById('ctl00_AdminContentPlaceHolder_txtMiddleName').value;
                if (caseNo == "" && SSNNo == "___-__-____") {
                    if (txtLastNameSearch == "" && txtFirstNameSearch == "" && txtMiddleNameSearch == "") {
                        alert('Either Case No # OR SSN No # And Name Criteria is Required');
                        return false;
                    }
                    else {
                        return true;
                    }
                }
            }

            function validationFunction(source, args) {
                if (args.Value == "Select Client Type" || args.Value == "Select Special Group" || args.Value == "Select Service" || args.Value == "Select Program Name" || args.Value == "Select CaseNo" || args.Value == "Select Prerequest" || args.Value == "Select Offience" || args.Value == "Select Case Status") {
                    args.IsValid = false;
                } else {
                    args.IsValid = true;
                }
            }
        </script>

        <div class="maindrc">
            <asp:Panel ID="pnlValidatorSummary" runat="server">
               <asp:ValidationSummary ID="vsError" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsError" CssClass="errormessage"></asp:ValidationSummary>
                <asp:ValidationSummary ID="vsPersonalInforamtion" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsPersonalInforamtion" CssClass="errormessage"></asp:ValidationSummary>
                <asp:ValidationSummary ID="vsClientCheckin" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsClientCheckin" CssClass="errormessage"></asp:ValidationSummary>
                <asp:ValidationSummary ID="vsViolation" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsViolation" CssClass="errormessage"></asp:ValidationSummary>
                <asp:ValidationSummary ID="vsReviewViolation" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsReviewViolation" CssClass="errormessage"></asp:ValidationSummary>
                <asp:ValidationSummary ID="vsCaseNotes" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsCaseNotes" CssClass="errormessage"></asp:ValidationSummary>         
                <asp:ValidationSummary ID="vsCR" runat="server" ShowSummary="false" ShowMessageBox="true"
                    HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                    ValidationGroup="vsCR" CssClass="errormessage"></asp:ValidationSummary>
              
            </asp:Panel>
            <table cellspacing="0" cellpadding="5" width="100%">
                <tr>
                    <td class="left_menu" valign="Top">
                        <table cellspacing="0" cellpadding="0" align="center" style="width: 100%">
                            <tr>
                                <td style="text-align: center; font: bold 15px arial; padding-bottom: 5px; padding-top: 5px; background: #c7c7c7; vertical-align: top">Client
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <ul id="css3menu1" class="topmenu">
                                        <li class="topfirst"><a href="#" id="Menu1" onclick="javascript:ShowPanel(1);">
                                            <img src="../Images/personal_info.png" />
                                            Personal Info</a></li>
                                        <li class="topmenu"><a href="#" id="Menu2" onclick="javascript:ShowPanel(2);">
                                            <img src="../Images/checkin.png" />Client Check-In</a></li>
                                        <li class="topmenu"><a href="#" id="Menu3" onclick="javascript:ShowPanel(3);"><span>
                                            <img src="../Images/history_clear.png" />Client History</span></a></li>
                                        <li class="topmenu"><a href="#" id="Menu4" onclick="javascript:ShowPanel(4);">
                                            <img src="../Images/activity.png" />Client Activity</a></li>
                                        <li class="topmenu"><a href="#" id="Menu5" onclick="javascript:ShowPanel(5);">
                                            <img src="../Images/book.png" />Case Notes</a></li>
                                        <li class="topmenu"><a href="#" id="Menu6" onclick="javascript:ShowPanel(6);">
                                            <img src="../Images/new_vio.png" />New Violation</a></li>                                                                 
                                    </ul>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 1%"></td>
                    <td class="right_menu" style="vertical-align: top;">
                        <table cellspacing="0" cellpadding="0" align="center" width="100%">
                            <tr>
                                <td style="text-align: center; border: 1px solid #eee; padding-bottom: 5px; padding-top: 5px;">
                                    <table id="tblCourtOrder" runat="server" align="center" cellspacing="2" cellpadding="2"
                                        style="width: 98%;">
                                        <tr>
                                            <td colspan="7" align="left" class="header_title">Select Client
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="7" align="left">
                                                <div class="hrstyle">
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" align="right">
                                                <asp:Label ID="lblName" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                                <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                            </td>
                                            <td valign="top" align="left">
                                                <telerik:RadTextBox ID="txtCase" runat="server" MaxLength="14">
                                                </telerik:RadTextBox>
                                            </td>
                                            <td valign="top" align="right">
                                                <asp:Label ID="lblBookingNbr" runat="server" CssClass="labelText" Text="SSN #: "></asp:Label>
                                                <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                            </td>
                                            <td valign="top" align="left">
                                                <telerik:RadMaskedTextBox Mask="###-##-####" runat="server" ID="txtSSN">
                                                </telerik:RadMaskedTextBox>
                                            </td>
                                            <td valign="top" align="right">
                                                <asp:Label ID="lblRetiveDateofBirth" runat="server" CssClass="labelText" Text="Date Of Birth : "></asp:Label>
                                            </td>
                                            <td valign="top" align="left">
                                                <telerik:RadDatePicker ID="dtRetrivreDateofBirth" runat="server" Width="90px" DateInput-DateFormat="M/dd/yyyy"
                                                    Culture="en-US" MinDate="1900-01-01">
                                                </telerik:RadDatePicker>
                                            </td>
                                            <td>&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 15%" valign="top" align="right">
                                                <asp:Label ID="lblLastName" runat="server" CssClass="labelText" Text="Last Name : "></asp:Label>
                                                <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                            </td>
                                            <td style="width: 15%" valign="top" align="left">
                                                <telerik:RadTextBox ID="txtLastName" runat="server" MaxLength="100">
                                                </telerik:RadTextBox>
                                                <asp:RegularExpressionValidator ID="revlastname" runat="server" Display="none" ValidationGroup="vsError"
                                                    ErrorMessage="Last Name Only Character Words Allow" ControlToValidate="txtLastName"
                                                    ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                            </td>
                                            <td style="width: 15%" valign="top" align="right">
                                                <asp:Label ID="lblFirstName" runat="server" CssClass="labelText" Text="First Name : "></asp:Label>
                                                <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                            </td>
                                            <td style="width: 20%" valign="top" align="left">
                                                <telerik:RadTextBox ID="txtFirstName" runat="server" MaxLength="100">
                                                </telerik:RadTextBox>
                                                <asp:RegularExpressionValidator ID="revfirstname" runat="server" Display="none" ValidationGroup="vsError"
                                                    ErrorMessage="First Name Only Character Words Allow" ControlToValidate="txtFirstName"
                                                    ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                            </td>
                                            <td style="width: 12%" valign="top" align="right">
                                                <asp:Label ID="lblMiddleName" runat="server" CssClass="labelText" Text="Middle Name : "></asp:Label>
                                            </td>
                                            <td style="width: 10%" valign="top" align="left">
                                                <telerik:RadTextBox ID="txtMiddleName" runat="server" MaxLength="100">
                                                </telerik:RadTextBox>
                                                <asp:RegularExpressionValidator ID="revmiddlename" runat="server" Display="none"
                                                    ValidationGroup="vsError" ErrorMessage="Middle Name Only Character Words Allow"
                                                    ControlToValidate="txtMiddleName" ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                            </td>
                                            <td>&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="7" align="left">&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="7" align="right">
                                                <telerik:RadButton ID="btnRetrive" runat="server" Text="Retrive" OnClientClick="BeginLoad();" OnClick="btnRetrive_Click">
                                                </telerik:RadButton>
                                                &nbsp;
                                                <telerik:RadButton ID="btnClearSerach" runat="server" CausesValidation="false" Text="Clear" OnClick="btnClearSerach_Click">
                                                </telerik:RadButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 5px;"></td>
                            </tr>
                            <tr>
                                <td style="text-align: center; border: 1px solid #eee; padding-bottom: 5px; padding-top: 5px;">
                                    <asp:Panel ID="pnl1" runat="server" Style="display: none;">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RALoading">
                                            <table id="tblPersonal" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                style="width: 98%;">
                                                <tr>
                                                    <td colspan="6" align="left" class="header_title">Personal Information
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblClientType" runat="server" CssClass="labelText" Text="Client Type : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadComboBox ID="cmdClientType" Width="300px" runat="server">
                                                        </telerik:RadComboBox>
                                                        <asp:CustomValidator ID="CustomValidator1" ErrorMessage="Please Select Client Type"
                                                            SetFocusOnError="true" ControlToValidate="cmdClientType" ValidateEmptyText="true"
                                                            runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsPersonalInforamtion"></asp:CustomValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblSpecialGroup" runat="server" CssClass="labelText" Text="Special Group : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadComboBox ID="cmdSpecialGroup" Width="300px" runat="server">
                                                        </telerik:RadComboBox>
                                                        <asp:CustomValidator ID="CustomValidator2" ErrorMessage="Please Select Special Group"
                                                            SetFocusOnError="true" ControlToValidate="cmdSpecialGroup" ValidateEmptyText="true"
                                                            runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsPersonalInforamtion"></asp:CustomValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblSSN" runat="server" CssClass="labelText" Text="SSN : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadTextBox ID="txtPISSN" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                        <asp:RequiredFieldValidator ID="rfv1" runat="server" ValidationGroup="vsPersonalInforamtion"
                                                            SetFocusOnError="true" ErrorMessage="Please Enter SSN" Display="none" ControlToValidate="txtPISSN"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblEducationLevel" runat="server" CssClass="labelText" Text="Education Level : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdEducationLevel" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblDateofBirth" runat="server" CssClass="labelText" Text="Date Of Birth : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadDatePicker ID="txtDateOfBirth" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblGender" runat="server" CssClass="labelText" Text="Gender : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <asp:RadioButtonList ID="cmdGender" runat="server" RepeatDirection="Horizontal" AutoPostBack="True"
                                                            Width="180px">
                                                            <asp:ListItem Text="Male" Value="1">
                                                            </asp:ListItem>
                                                            <asp:ListItem Text="Female" Value="2">
                                                            </asp:ListItem>
                                                            <asp:ListItem Text="Other" Value="3">
                                                            </asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblRace" runat="server" CssClass="labelText" Text="Race : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmdRace" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="Label5" runat="server" CssClass="labelText" Text="Marital Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdMarital" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="Label4" runat="server" CssClass="labelText" Text="Height : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadTextBox ID="txtHeightFT" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                        FT
                        <telerik:RadTextBox ID="txtHeightIn" runat="server" MaxLength="100">
                        </telerik:RadTextBox>
                                                        In
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="Label6" runat="server" CssClass="labelText" Text="Weight : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtWeight" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                        Lbs
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblHairColor" runat="server" CssClass="labelText" Text="Hair Color : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmdHairColor" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblEyeColor" runat="server" CssClass="labelText" Text="Eye Color : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdEyeColor" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblDistinguishing" runat="server" CssClass="labelText" Text="Distinguishing Marks : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadTextBox ID="txtDistinguishing" Width="400px" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="Label7" runat="server" CssClass="labelText" Text="Country of Origin : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmdCountryOrigin" runat="server" Width="405px">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">Email
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtEmail" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblEmploymentStatus" runat="server" CssClass="labelText" Text="Employment Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmdEmploymentStatus" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblEducationStatus" runat="server" CssClass="labelText" Text="Education Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdEducationStatus" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblDisability" runat="server" CssClass="labelText" Text="Disability Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadComboBox ID="cmdDisability" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblLivingArrangments" runat="server" CssClass="labelText" Text="Living Arrangements : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmdLivingArrangments" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblypeofResidence" runat="server" CssClass="labelText" Text="Type of Residence : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdTypeofResidence" runat="server">
                                                            <Items>
                                                                <telerik:RadComboBoxItem Text="Select" Value="0" Selected="true" />
                                                                <telerik:RadComboBoxItem Text="Home Address" Value="1" />
                                                            </Items>
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblAddressType" runat="server" CssClass="labelText" Text="Address Type: "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <asp:Label ID="lblAddressTypeValue" runat="server" CssClass="labelText" Text="Home "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblCheckifnewaddress" runat="server" CssClass="labelText" Text="Check if new address : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadButton ID="chkCheckifnewaddress" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="CheckBox" AutoPostBack="false"></telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="Label11" runat="server" CssClass="labelText" Text="Address : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadTextBox ID="txtPIAddress" Width="400px" runat="server" TextMode="MultiLine" Height="100px" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <%--  <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblLivingAddressLine1" runat="server" CssClass="labelText" Text="Address Line 1 : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left" colspan="5">
                                                    <telerik:RadTextBox ID="txtLivingAddressLine1" Width="400px" runat="server" MaxLength="100">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblLivingAddressLine2" runat="server" CssClass="labelText" Text="Address Line 2 : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left" colspan="5">
                                                    <telerik:RadTextBox ID="txtLivingAddressLine2" Width="400px" runat="server" MaxLength="100">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 16%" valign="top" align="right">
                                                    <asp:Label ID="lblLivingCity" runat="server" CssClass="labelText" Text="City : "></asp:Label>
                                                </td>
                                                <td style="width: 15%" valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtCity" runat="server" MaxLength="100">
                                                    </telerik:RadTextBox>
                                                </td>
                                                <td style="width: 6%" valign="top" align="right">
                                                    <asp:Label ID="lblLivingState" runat="server" CssClass="labelText" Text="State : "></asp:Label>
                                                </td>
                                                <td style="width: 4%" valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtState" runat="server" MaxLength="100">
                                                    </telerik:RadTextBox>
                                                </td>
                                                <td style="width: 15%" valign="top" align="right">
                                                    <asp:Label ID="lblLivingZip" runat="server" CssClass="labelText" Text="Zip : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtZip" runat="server" MaxLength="100">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>--%>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblLivingHomePhone" runat="server" CssClass="labelText" Text="Home Phone : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadTextBox ID="txtLivingHomePhone" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="Label1" runat="server" CssClass="labelText" Text="Mobile Phone : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadTextBox ID="txtLivingMobilePhone" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblLivingMovePending" runat="server" CssClass="labelText" Text="Move Pending at Intake : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadButton ID="txtMovePending" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="CheckBox" AutoPostBack="false"></telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblMovePendingWhen" runat="server" CssClass="labelText" Text="Move Pending When : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadDatePicker ID="dtMovePendingWhen" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblDriverLicense" runat="server" CssClass="labelText" Text="Driver's License : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadTextBox ID="txtDriverLicense" runat="server">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblcmdDriversLicenseState" runat="server" CssClass="labelText" Text="Driver's License State : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdDriversLicenseState" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblDriversLicenseStatus" runat="server" CssClass="labelText" Text="Driver's License Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <asp:RadioButtonList ID="rblDriversLicenseStatus" runat="server" RepeatDirection="Horizontal" AutoPostBack="True"
                                                            Width="300px">
                                                            <asp:ListItem Text="Active" Value="1">
                                                            </asp:ListItem>
                                                            <asp:ListItem Text="Expired" Value="4">
                                                            </asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblLicenseExpirationDate" runat="server" CssClass="labelText" Text="Driver's License Expiration Date : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadDatePicker ID="dtLicenseExpirationDate" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblOtherIDType" runat="server" CssClass="labelText" Text="Other ID Type : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmdOtherIDType" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblOtherID" runat="server" CssClass="labelText" Text="Other ID : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtOtherID" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblMake" runat="server" CssClass="labelText" Text="Make : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdMake" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblModel" runat="server" CssClass="labelText" Text="Model : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdModel" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblColor" runat="server" CssClass="labelText" Text="Color : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdColor" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblPlate" runat="server" CssClass="labelText" Text="Plate # : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtPlate" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblYear" runat="server" CssClass="labelText" Text="Year : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdYear" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblRegistration" runat="server" CssClass="labelText" Text="Registration State : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdtRegistrationstate" runat="server" MaxLength="100">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblPrimaryTransportation" runat="server" CssClass="labelText" Text="Primary Transportation Method : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadComboBox ID="cmdPrimaryTransportation" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblTransportationPlan" runat="server" CssClass="labelText" Text="Transportation backup plan : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="5">
                                                        <telerik:RadTextBox ID="txtTransportationPlan" runat="server" Width="400px" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblOffice" runat="server" CssClass="labelText" Text="Office : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtOffice" runat="server">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblStatus" runat="server" CssClass="labelText" Text="Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <asp:RadioButtonList ID="rbStatus" runat="server" RepeatDirection="Horizontal" AutoPostBack="True"
                                                            Width="140px">
                                                            <asp:ListItem Text="Active" Value="1">
                                                            </asp:ListItem>
                                                            <asp:ListItem Text="InActive" Value="0">
                                                            </asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblCreatedDate" runat="server" CssClass="labelText" Text="Created Date : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadDatePicker ID="txtPICreatedDate" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">&nbsp;
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td colspan="6" align="center">
                                                        <telerik:RadButton ID="btnPISave" runat="server" Text="Save" ValidationGroup="vsPersonalInforamtion" OnClick="btnPISave_Click">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">&nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadAjaxPanel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnl2" runat="server" Style="display: none;">
                                        <table id="tblClientCheckin" runat="server" align="center" cellspacing="2" cellpadding="2" style="width: 98%;">
                                            <tr>
                                                <td colspan="2" align="left" class="header_title">Client Checkin
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <telerik:RadTabStrip ID="tabClientTrip" runat="server" SelectedIndex="1" MultiPageID="tabClintCheckin">
                                                        <Tabs>
                                                            <telerik:RadTab Text="Services" Selected="True">
                                                            </telerik:RadTab>
                                                            <telerik:RadTab Text="Payment">
                                                            </telerik:RadTab>
                                                        </Tabs>
                                                    </telerik:RadTabStrip>
                                                    <telerik:RadMultiPage ID="tabClintCheckin" runat="server" SelectedIndex="0" BorderColor="#A5B3C5"
                                                        BorderStyle="Solid" BorderWidth="1px">
                                                        <telerik:RadPageView ID="tableServices" runat="server">
                                                            <telerik:RadAjaxPanel ID="radServices" runat="server" LoadingPanelID="RALoading">
                                                                <table id="tabServices" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                                    style="width: 98%; padding-top: 8px">
                                                                    <%-- <tr>
                                                                        <td valign="top" align="left" colspan="5">
                                                                            <asp:Label ID="lblOnDemandService" runat="server" CssClass="header_title" Text="On Demand Service "></asp:Label>
                                                                        </td>
                                                                    </tr>--%>
                                                                    <tr>
                                                                        <td valign="top" style="width: 5%" align="left">
                                                                            <asp:Label ID="lblGiven" runat="server" CssClass="labelText" Text="Given  "></asp:Label>
                                                                        </td>
                                                                        <td valign="top" align="left" style="width: 20%">
                                                                            <asp:Label ID="lblServices" runat="server" CssClass="labelText" Text="Services "></asp:Label>
                                                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                                        </td>
                                                                        <td valign="top" align="left" style="width: 20%">
                                                                            <asp:Label ID="lblPrograms" runat="server" CssClass="labelText" Text="Programs "></asp:Label>
                                                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                                        </td>
                                                                        <td valign="top" align="left" style="width: 17%">
                                                                            <asp:Label ID="lblItemCost" runat="server" CssClass="labelText" Text="Item Cost "></asp:Label>
                                                                        </td>
                                                                        <td valign="top" align="left">
                                                                            <asp:Label ID="lblClientCost" runat="server" CssClass="labelText" Text="Client Cost "></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="top" align="left">
                                                                            <telerik:RadButton ID="chkGiven" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" AutoPostBack="false" Text="" Value="1" Checked="true"></telerik:RadButton>
                                                                        </td>
                                                                        <td valign="top" align="left">
                                                                            <telerik:RadComboBox ID="cmdServices" AutoPostBack="true" runat="server" OnSelectedIndexChanged="cmdServices_SelectedIndexChanged"></telerik:RadComboBox>
                                                                            <asp:CustomValidator ID="CustomValidator3" ErrorMessage="Please Select Services"
                                                                                SetFocusOnError="true" ControlToValidate="cmdServices" ValidateEmptyText="true"
                                                                                runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsClientCheckin"></asp:CustomValidator>
                                                                        </td>
                                                                        <td valign="top" align="left">
                                                                            <telerik:RadComboBox ID="cmdProgram" AutoPostBack="true" runat="server" OnSelectedIndexChanged="cmdProgram_SelectedIndexChanged"></telerik:RadComboBox>
                                                                            <asp:CustomValidator ID="CustomValidator4" ErrorMessage="Please Select Programs"
                                                                                SetFocusOnError="true" ControlToValidate="cmdProgram" ValidateEmptyText="true"
                                                                                runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsClientCheckin"></asp:CustomValidator>
                                                                        </td>
                                                                        <td valign="top" align="left">
                                                                            <telerik:RadTextBox ID="txtItemCost" runat="server" Enabled="false">
                                                                            </telerik:RadTextBox></td>
                                                                        <td valign="top" align="left">
                                                                            <telerik:RadTextBox ID="txtClientCost" runat="server" Enabled="false">
                                                                            </telerik:RadTextBox></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="left">&nbsp;</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="left">
                                                                            <div class="hrstyle">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="left">&nbsp;</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="center">
                                                                            <telerik:RadButton ID="btnClientCheckinSave" runat="server" Text="Save" ValidationGroup="vsClientCheckin" OnClick="btnClientCheckinSave_Click">
                                                                            </telerik:RadButton>
                                                                            &nbsp;
                                                                            <telerik:RadButton ID="btnClientCheckinCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnClientCheckinCancel_Click">
                                                                            </telerik:RadButton>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="left"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="left">
                                                                            <telerik:RadGrid ID="grdServices" runat="server" AllowPaging="True" AllowSorting="True"
                                                                                AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                                                OnNeedDataSource="grdServices_NeedDataSource" OnItemCommand="grdServices_ItemCommand">
                                                                                <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                                                <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace" DataKeyNames="AddServicePK">
                                                                                    <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                                    <Columns>
                                                                                        <telerik:GridTemplateColumn HeaderText="Program Name" ItemStyle-HorizontalAlign="Left" SortExpression="ProgramName">
                                                                                            <ItemTemplate>
                                                                                                <%# Eval("ProgramName") %>
                                                                                            </ItemTemplate>
                                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                                        </telerik:GridTemplateColumn>
                                                                                        <telerik:GridTemplateColumn HeaderText="Service Name" ItemStyle-HorizontalAlign="Left" SortExpression="ServiceName">
                                                                                            <ItemTemplate>
                                                                                                <%# Eval("ServiceName") %>
                                                                                            </ItemTemplate>
                                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                                        </telerik:GridTemplateColumn>
                                                                                        <telerik:GridTemplateColumn HeaderText="Given" ItemStyle-HorizontalAlign="Left" SortExpression="Given">
                                                                                            <ItemTemplate>
                                                                                                <%# Eval("Given") %>
                                                                                            </ItemTemplate>
                                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                                        </telerik:GridTemplateColumn>
                                                                                        <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                                            UniqueName="editdetail">
                                                                                            <ItemTemplate>
                                                                                                <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("AddServicePK") %>'
                                                                                                    CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                                            </ItemTemplate>
                                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                                        </telerik:GridTemplateColumn>
                                                                                        <telerik:GridButtonColumn ConfirmText="Delete this Services?" ConfirmDialogType="RadWindow"
                                                                                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                                            UniqueName="DeleteColumn">
                                                                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                                        </telerik:GridButtonColumn>
                                                                                    </Columns>
                                                                                    <EditFormSettings>
                                                                                        <EditColumn Visible="false"></EditColumn>
                                                                                    </EditFormSettings>
                                                                                </MasterTableView>
                                                                            </telerik:RadGrid>

                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </telerik:RadAjaxPanel>
                                                        </telerik:RadPageView>
                                                        <telerik:RadPageView ID="tablePayment" runat="server">
                                                            <telerik:RadAjaxPanel ID="radPayment" runat="server" LoadingPanelID="RALoading">
                                                                <table id="tabPayment" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                                    style="width: 98%; padding-top: 8px">
                                                                    <tr>
                                                                        <td valign="top" align="right" colspan="5">
                                                                            <asp:Label ID="labelPaymentInfo" runat="server" CssClass="header_title" Text="Payment "></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="5" align="center">
                                                                            <telerik:RadButton ID="btnPayment" runat="server" Text="Save" OnClick="btnPayment_Click">
                                                                            </telerik:RadButton>
                                                                            &nbsp;
                                                                            <telerik:RadButton ID="btnCancel" runat="server" CausesValidation="false" Text="Cancel">
                                                                            </telerik:RadButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </telerik:RadAjaxPanel>
                                                        </telerik:RadPageView>
                                                    </telerik:RadMultiPage>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <asp:Panel ID="pnl3" runat="server" Style="display: none;">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RALoading">
                                            <table id="tblClientHistory" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                style="width: 98%;">
                                                <tr>
                                                    <td colspan="6" align="left" class="header_title">Client History
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 16%" valign="top" align="right">
                                                        <asp:Label ID="lblDateRange" runat="server" CssClass="labelText" Text="Date Range   From : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span></td>
                                                    <td style="width: 19%" valign="top" align="left">
                                                        <telerik:RadDatePicker ID="txtStartDateRange" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                    <td style="width: 10%" valign="top" align="right">
                                                        <asp:Label ID="lblDateFrom" runat="server" CssClass="labelText" Text="To  : "></asp:Label></td>
                                                    <td style="width: 10%" valign="top" align="left">
                                                        <telerik:RadDatePicker ID="txtDateRangeTo" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                    <td align="left" style="width: 21%">
                                                        <telerik:RadButton ID="chkServices" runat="server" ButtonType="ToggleButton" GroupName="CHistory" ToggleType="Radio" AutoPostBack="false" Text="Services" Value="1" Checked="true"></telerik:RadButton>
                                                        <telerik:RadButton ID="chkViolation" runat="server" ButtonType="ToggleButton" GroupName="CHistory" ToggleType="Radio" AutoPostBack="false" Text="Violation" Value="2"></telerik:RadButton>
                                                        <telerik:RadButton ID="chkNotes" runat="server" ButtonType="ToggleButton" GroupName="CHistory" ToggleType="Radio" AutoPostBack="false" Text="Notes" Value="3"></telerik:RadButton>
                                                    </td>
                                                    <td align="left">
                                                        <telerik:RadButton ID="btnCHRetrive" runat="server" Text="Retrieve" OnClick="btnCHRetrive_Click">
                                                        </telerik:RadButton>
                                                        &nbsp;
                                                      <telerik:RadButton ID="btnCHCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnCHCancel_Click">
                                                      </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left"></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left"></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                    <td>
                                                        <asp:Label ID="lblPayble" runat="server" CssClass="labelText" Text="Payable Balance  : "></asp:Label></td>
                                                    <td colspan="2">
                                                        <asp:Label ID="lblReceivable" runat="server" CssClass="labelText" Text="Receivable Balance  : "></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="lblTotalBalance" runat="server" CssClass="labelText" Text="Total Balance  : "></asp:Label></td>

                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="left">

                                                        <telerik:RadGrid ID="grdClientHistory" runat="server" AllowPaging="True" AllowSorting="True"
                                                            AutoGenerateColumns="True" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                            OnNeedDataSource="grdClientHistory_NeedDataSource">
                                                            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                            <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace">
                                                                <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                <EditFormSettings>
                                                                    <EditColumn Visible="false"></EditColumn>
                                                                </EditFormSettings>
                                                            </MasterTableView>
                                                        </telerik:RadGrid>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6" align="right">&nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadAjaxPanel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnl4" runat="server" Style="display: none;">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="RALoading">
                                            <table id="tblClientActivity" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                style="width: 98%;">
                                                <tr>
                                                    <td colspan="5" align="left" class="header_title">Client Activity
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 16%" valign="top" align="right">
                                                        <asp:Label ID="Label2" runat="server" CssClass="labelText" Text="Date Range   From : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span></td>
                                                    <td style="width: 19%" valign="top" align="left">
                                                        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                    <td style="width: 10%" valign="top" align="right">
                                                        <asp:Label ID="Label3" runat="server" CssClass="labelText" Text="To  : "></asp:Label></td>
                                                    <td style="width: 16%" valign="top" align="left">
                                                        <telerik:RadDatePicker ID="RadDatePicker2" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                    <td align="left">
                                                        <telerik:RadButton ID="btnCARetrieve" runat="server" Text="Retrieve" ValidationGroup="vsCAError">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="left"></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="left"></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                    <td>
                                                        <asp:Label ID="Label8" runat="server" CssClass="labelText" Text="Payable Balance  : "></asp:Label></td>
                                                    <td colspan="2">
                                                        <asp:Label ID="Label9" runat="server" CssClass="labelText" Text="Receivable Balance  : "></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="Label10" runat="server" CssClass="labelText" Text="Total Balance  : "></asp:Label></td>

                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" align="right">

                                                        <telerik:RadButton ID="btnCACancel" runat="server" CausesValidation="false" Text="Cancel">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadAjaxPanel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnl5" runat="server" Style="display: none;">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server" LoadingPanelID="RALoading">
                                            <table id="tblCaseNotes" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                style="width: 98%;">
                                                <tr>
                                                    <td colspan="7" align="left" class="header_title">Case Notes
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 16%" valign="top" align="right">
                                                        <asp:Label ID="lblCaseNumber" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>

                                                    </td>
                                                    <td style="width: 12%">
                                                        <telerik:RadComboBox ID="cmdCase" runat="server" Visible="false">
                                                        </telerik:RadComboBox>
                                                        <telerik:RadTextBox ID="txtCNCaseSearch" runat="server" MaxLength="200" Visible="false">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td style="width: 16%" valign="top" align="right">
                                                        <asp:Label ID="lblStartDate" runat="server" CssClass="labelText" Text="Start : "></asp:Label>
                                                    </td>
                                                    <td style="width: 12%" valign="top" align="left">
                                                        <telerik:RadDatePicker ID="txtStart" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>

                                                    </td>
                                                    <td style="width: 16%" valign="top" align="right">
                                                        <asp:Label ID="lblEndDate" runat="server" CssClass="labelText" Text="End  : "></asp:Label></td>
                                                    <td style="width: 12%" valign="top" align="left">
                                                        <telerik:RadDatePicker ID="txtEnd" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                    <td align="left">
                                                        <telerik:RadButton ID="btnCNRetrive" runat="server" Text="Retrieve" CausesValidation="false" OnClick="btnCNRetrive_Click">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblCase" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td>
                                                        <telerik:RadComboBox ID="cmdCNCase" runat="server">
                                                        </telerik:RadComboBox>
                                                        <telerik:RadTextBox ID="txtCNCase" runat="server" MaxLength="200" Visible="false">
                                                        </telerik:RadTextBox>
                                                        <asp:CustomValidator ID="reqCNCaseCmd" ErrorMessage="Please Select Case #"
                                                            SetFocusOnError="true" ControlToValidate="cmdCNCase" ValidateEmptyText="true"
                                                            runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsCaseNotes"></asp:CustomValidator>
                                                        <asp:RequiredFieldValidator ID="reqCNCaseTxt" runat="server" ValidationGroup="vsCaseNotes"
                                                            SetFocusOnError="true" ErrorMessage="Please Enter Case #" Display="none" ControlToValidate="txtCNCase"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblCNCreatedDate" runat="server" CssClass="labelText" Text="Created Date : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span></td>
                                                    <td valign="top" align="left" colspan="4">
                                                        <telerik:RadDatePicker ID="dtCNCreatedDate" runat="server" MinDate="1900-01-01" ShowPopupOnFocus="true">
                                                        </telerik:RadDatePicker>
                                                        <asp:RequiredFieldValidator ID="reqStart" runat="server" ValidationGroup="vsCaseNotes"
                                                            SetFocusOnError="true" ErrorMessage="Please Select Created Date" Display="none" ControlToValidate="dtCNCreatedDate"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblPreDefined" runat="server" CssClass="labelText" Text="Pre-Defined Notes : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="6">
                                                        <telerik:RadComboBox ID="cmdPreDefined" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmdPreDefined_SelectedIndexChanged">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblNotes" runat="server" CssClass="labelText" Text="Notes : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td valign="top" align="left" colspan="6">
                                                        <telerik:RadTextBox ID="txtNotes" TextMode="MultiLine" Width="410px" Height="100px" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="vsCaseNotes"
                                                            SetFocusOnError="true" ErrorMessage="Please Enter Notes" Display="none" ControlToValidate="txtNotes"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblCNAdditionalNotes" runat="server" CssClass="labelText" Text="Additional Notes : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="6">
                                                        <telerik:RadTextBox ID="txtAdditional" TextMode="MultiLine" Width="410px" Height="70px" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" align="center">
                                                        <telerik:RadButton ID="btnCNSave" runat="server" Text="Save" ValidationGroup="vsCaseNotes" OnClick="btnCNSave_Click">
                                                        </telerik:RadButton>

                                                        <telerik:RadButton ID="btnCNCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnCNCancel_Click">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="left">
                                                        <telerik:RadGrid ID="grdCN" runat="server" AllowPaging="True" AllowSorting="True"
                                                            AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                            OnNeedDataSource="grdCN_NeedDataSource" OnItemCommand="grdCN_ItemCommand">
                                                            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                            <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace" DataKeyNames="DRCCaseNotesPK">
                                                                <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                <Columns>
                                                                    <telerik:GridTemplateColumn HeaderText="CaseNo" ItemStyle-HorizontalAlign="Left" SortExpression="CaseNo">
                                                                        <ItemTemplate>
                                                                            <%# Eval("CaseNo") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Notes" ItemStyle-HorizontalAlign="Left" SortExpression="Notes">
                                                                        <ItemTemplate>
                                                                            <%# Eval("Notes") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Created Date" ItemStyle-HorizontalAlign="Left" SortExpression="CreatedDateDtTm">
                                                                        <ItemTemplate>
                                                                            <%# String.Format("{0:MM/dd/yyyy}", Eval("CreatedDateDtTm"))%>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                        UniqueName="editdetail">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("DRCCaseNotesPK") %>'
                                                                                CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridButtonColumn ConfirmText="Delete this Case Notes?" ConfirmDialogType="RadWindow"
                                                                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                        UniqueName="DeleteColumn">
                                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                    </telerik:GridButtonColumn>
                                                                </Columns>
                                                                <EditFormSettings>
                                                                    <EditColumn Visible="false"></EditColumn>
                                                                </EditFormSettings>
                                                            </MasterTableView>
                                                        </telerik:RadGrid>
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadAjaxPanel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnl6" runat="server" Style="display: none;">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel5" runat="server" LoadingPanelID="RALoading">
                                            <table id="tblNewViolation" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                style="width: 98%;">
                                                <tr>
                                                    <td colspan="2" align="left" class="header_title">New Violation
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblPreDefinedNotes" runat="server" CssClass="labelText" Text="Pre Defined Notes : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmbPreDefinedNotes" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbPreDefinedNotes_SelectedIndexChanged">
                                                        </telerik:RadComboBox>
                                                        <asp:CustomValidator ID="CustomValidator6" ErrorMessage="Please Select Pre Defined Notes"
                                                            SetFocusOnError="true" ControlToValidate="cmbPreDefinedNotes" ValidateEmptyText="true"
                                                            runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsViolation"></asp:CustomValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 15%" valign="top" align="right">
                                                        <asp:Label ID="lblShortDescription" runat="server" CssClass="labelText" Text="New Violation : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtShortDescription" TextMode="MultiLine" runat="server" Height="100px" Width="493px">
                                                        </telerik:RadTextBox>
                                                        <asp:RequiredFieldValidator ID="reqShortDescription" runat="server" ValidationGroup="vsViolation"
                                                            SetFocusOnError="true" ErrorMessage="Please Enter New Violation" Display="none" ControlToValidate="txtShortDescription"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblResolutions" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmcCase" runat="server" Visible="false">
                                                        </telerik:RadComboBox>
                                                        <telerik:RadTextBox ID="txtNCCase" runat="server" MaxLength="200" Visible="false">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblPre" runat="server" CssClass="labelText" Text="Services : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmcServices" runat="server">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td colspan="2" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" align="center">
                                                        <telerik:RadButton ID="btnNVSave" runat="server" Text="Save" ValidationGroup="vsViolation" OnClick="btnNVSave_Click">
                                                        </telerik:RadButton>
                                                        <telerik:RadButton ID="btnNVCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnNVCancel_Click">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="left">
                                                        <telerik:RadGrid ID="grdViolation" runat="server" AllowPaging="True" AllowSorting="True"
                                                            AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                            OnNeedDataSource="grdViolation_NeedDataSource" OnItemCommand="grdViolation_ItemCommand">
                                                            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                            <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace" DataKeyNames="NewViolationPK">
                                                                <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                <Columns>
                                                                    <telerik:GridTemplateColumn HeaderText="CaseNo" ItemStyle-HorizontalAlign="Left" SortExpression="CaseNoFK">
                                                                        <ItemTemplate>
                                                                            <%# Eval("CaseNoFK") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Pre Defined Notes" ItemStyle-HorizontalAlign="Left" SortExpression="PreDefinedNotesFK">
                                                                        <ItemTemplate>
                                                                            <%# Eval("PreDefinedNotesFK") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Services" ItemStyle-HorizontalAlign="Left" SortExpression="ServicesFK">
                                                                        <ItemTemplate>
                                                                            <%# Eval("ServicesFK") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                        UniqueName="editdetail">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("NewViolationPK") %>'
                                                                                CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridButtonColumn ConfirmText="Delete this Violation?" ConfirmDialogType="RadWindow"
                                                                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                        UniqueName="DeleteColumn">
                                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                    </telerik:GridButtonColumn>
                                                                </Columns>
                                                                <EditFormSettings>
                                                                    <EditColumn Visible="false"></EditColumn>
                                                                </EditFormSettings>
                                                            </MasterTableView>
                                                        </telerik:RadGrid>
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadAjaxPanel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnl7" runat="server" Style="display: none;">
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel6" runat="server" LoadingPanelID="RALoading">
                                            <table id="tblReviewViolation" runat="server" align="center" cellspacing="2" cellpadding="2"
                                                style="width: 98%;">
                                                <tr>
                                                    <td colspan="4" align="left" class="header_title">Review Violation
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 20%" valign="top" align="right">
                                                        <asp:Label ID="lblRVCase" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td style="width: 16%" valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtRVCase" runat="server" MaxLength="14" Width="200px" Visible="false">
                                                        </telerik:RadTextBox>
                                                        <telerik:RadComboBox ID="cmdRVCase" runat="server" Visible="false">
                                                        </telerik:RadComboBox>
                                                        <asp:CustomValidator ID="reqRVCase" ErrorMessage="Please Select Case #"
                                                            SetFocusOnError="true" ControlToValidate="cmdRVCase" ValidateEmptyText="true"
                                                            runat="server" ClientValidationFunction="validationFunction" Display="none" Visible="false" ValidationGroup="vsReviewViolation"></asp:CustomValidator>
                                                        <asp:RequiredFieldValidator ID="reqRVCaseTxt" runat="server" ValidationGroup="vsReviewViolation"
                                                            SetFocusOnError="true" ErrorMessage="Please Enter Case #" Display="none" ControlToValidate="txtRVCase" Visible="false"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td style="width: 16%" valign="top" align="right">
                                                        <asp:Label ID="lblRVEvent" runat="server" CssClass="labelText" Text="Event : "></asp:Label>
                                                        <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtRVEvent" Width="200px" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ValidationGroup="vsReviewViolation"
                                                            SetFocusOnError="true" ErrorMessage="Please Enter Event" Display="none" ControlToValidate="txtRVEvent"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblRVStatus" runat="server" CssClass="labelText" Text="Status : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadComboBox ID="cmdRVStatus" runat="server" Width="205px">
                                                            <Items>
                                                                <telerik:RadComboBoxItem Text="All" Value="0" Selected="true" />
                                                                <telerik:RadComboBoxItem Text="Pre-Defined Notes" Value="1" />
                                                                <telerik:RadComboBoxItem Text="Other" Value="2" />
                                                            </Items>
                                                        </telerik:RadComboBox>
                                                    </td>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblViolationon" runat="server" CssClass="labelText" Text="Violation On : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left">
                                                        <telerik:RadTextBox ID="txtViolationON" Width="200px" runat="server" MaxLength="100">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblRCPreDENotes" runat="server" CssClass="labelText" Text="Pre Defined Notes : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadComboBox ID="cmcRVPredefineNotes" runat="server" Width="205px" AutoPostBack="true" OnSelectedIndexChanged="cmcRVPredefineNotes_SelectedIndexChanged">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblRVNotes" runat="server" CssClass="labelText" Text="Notes : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadTextBox ID="txtRVNotes" TextMode="MultiLine" Width="380px" Height="100px" runat="server">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        <asp:Label ID="lblRVAdditionalNotes" runat="server" CssClass="labelText" Text="Additional Notes : "></asp:Label>
                                                    </td>
                                                    <td valign="top" align="left" colspan="3">
                                                        <telerik:RadTextBox ID="txtRVAdditionalNotes" TextMode="MultiLine" Width="380px" Height="100px" runat="server">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="center">
                                                        <telerik:RadButton ID="brnRVSave" runat="server" Text="Save" ValidationGroup="vsReviewViolation" OnClick="brnRVSave_Click">
                                                        </telerik:RadButton>
                                                        <telerik:RadButton ID="btnRVCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnRVCancel_Click">
                                                        </telerik:RadButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="left">
                                                        <div class="hrstyle">
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4" align="left">
                                                        <telerik:RadGrid ID="grdReviewViolation" runat="server" AllowPaging="True" AllowSorting="True"
                                                            AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                            OnNeedDataSource="grdReviewViolation_NeedDataSource" OnItemCommand="grdReviewViolation_ItemCommand">
                                                            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                            <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace" DataKeyNames="ReviewViolationPK">
                                                                <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                <Columns>
                                                                    <telerik:GridTemplateColumn HeaderText="Case #" ItemStyle-HorizontalAlign="Left" SortExpression="CaseNo">
                                                                        <ItemTemplate>
                                                                            <%# Eval("CaseNo") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Event" ItemStyle-HorizontalAlign="Left" SortExpression="Event">
                                                                        <ItemTemplate>
                                                                            <%# Eval("Event") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Status" ItemStyle-HorizontalAlign="Left" SortExpression="StatusFK">
                                                                        <ItemTemplate>
                                                                            <%# Eval("StatusFK") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderText="Violation ON" ItemStyle-HorizontalAlign="Left" SortExpression="ViolationON">
                                                                        <ItemTemplate>
                                                                            <%# Eval("ViolationON") %>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                        UniqueName="editdetail">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("ReviewViolationPK") %>'
                                                                                CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridButtonColumn ConfirmText="Delete this Review Violation?" ConfirmDialogType="RadWindow"
                                                                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                        UniqueName="DeleteColumn">
                                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                    </telerik:GridButtonColumn>
                                                                </Columns>
                                                                <EditFormSettings>
                                                                    <EditColumn Visible="false"></EditColumn>
                                                                </EditFormSettings>
                                                            </MasterTableView>
                                                        </telerik:RadGrid>
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadAjaxPanel>
                                    </asp:Panel>                         
                                </td>
                            </tr>
                            <tr>
                                <td colspan="7" align="center">
                                    <asp:Label ID="lblCourtMsg" runat="server" Visible="false" ForeColor="Red" Font-Size="10pt"></asp:Label>
                                    <asp:HiddenField ID="hdnNameFK" Value="0" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="7" align="center">
                                    <telerik:RadAjaxPanel ID="radSSNSearch" runat="server" LoadingPanelID="RALoading">
                                        <telerik:RadWindowManager ShowOnTopWhenMaximized="true" Title="Search Results" AutoSize="true"
                                            Behaviors="Close,Move,Reload,Resize" ID="RadWindowManagerContainer" runat="server"
                                            EnableShadow="true" Style="z-index: 3000">
                                            <Windows>
                                                <telerik:RadWindow ID="wndInmateSearch" runat="server" AutoSize="true" VisibleStatusbar="false"
                                                    ShowContentDuringLoad="false" Enabled="true" Modal="true" VisibleOnPageLoad="false">
                                                    <ContentTemplate>
                                                        <center>
                                                          <table width="100%" cellpadding="1" cellspacing="1" border="0">
                                            <tr>
                                                <td align="left" style="width: 10%">
                                                    &nbsp;
                                                    <asp:Label ID="lblSSNSearch" runat="server" CssClass="labelText" Text=" SSN # :"></asp:Label>
                                                    <telerik:RadTextBox ID="txtSSNSerch" runat="server" Width="100px" MaxLength="14">
                                                    </telerik:RadTextBox>
                                                </td>                                          
                                                <td align="left" style="width: 10%">
                                                    <asp:Label ID="lblLastNameSearch" runat="server" CssClass="labelText" Text=" Last Name :"></asp:Label>
                                                    &nbsp;
                                                    <telerik:RadTextBox ID="txtLastNameSearch" runat="server" Width="100px" MaxLength="50">
                                                    </telerik:RadTextBox>
                                                </td>
                                                 <td align="left" style="width: 10%">
                                                    <asp:Label ID="lblFirstNameSearch" runat="server" CssClass="labelText" Text=" First Name:"></asp:Label>
                                                    &nbsp;
                                                    <telerik:RadTextBox ID="txtFirstNameSearch" runat="server" Width="100px" MaxLength="50">
                                                    </telerik:RadTextBox>
                                                </td>
                                                <td align="left">
                                                    <asp:Label ID="lblDateOfBirthserach" runat="server" CssClass="labelText" Text="  Date Of Birth :"></asp:Label>
                                                    &nbsp;
                                                    <telerik:RadDatePicker ID="dtDateofBirth" runat="server" Width="90px" DateInput-DateFormat="M/dd/yyyy"
                                                        Culture="en-US" MinDate="1900-01-01">
                                                    </telerik:RadDatePicker>
                                                    &nbsp;&nbsp;
                                                    <telerik:RadButton ID="btnSearchSSN" runat="server" Width="50px" CausesValidation="false"
                                                        Text="Search" OnClick="btnSearchSSN_Click">
                                                    </telerik:RadButton>
                                                    &nbsp;
                                                    <telerik:RadButton ID="btnClear" runat="server" Width="50px" CausesValidation="false"
                                                        Text="Clear" OnClick="btnClear_Click">
                                                    </telerik:RadButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4">
                                                    <telerik:RadGrid ID="grdMainSSNWindows" runat="server" AutoGenerateColumns="false"
                                                        AllowMultiRowSelection="False" GridLines="None" Width="980px" OnNeedDataSource="grdMainSSNWindows_NeedDataSource"
                                                        HeaderStyle-Wrap="true">
                                                        <ClientSettings EnableRowHoverStyle="true">
                                                            <Scrolling AllowScroll="true" ScrollHeight="310px" />
                                                            <Selecting AllowRowSelect="True" />
                                                          
                                                        </ClientSettings>
                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                        <MasterTableView AllowSorting="true" AllowPaging="True" DataKeyNames="NameID">
                                                            <Columns>
                                                                <telerik:GridBoundColumn HeaderText="SSN#" DataField="IDNumber" UniqueName="IDNumber"
                                                                    SortExpression="IDNumber" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Width="50px">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn HeaderText="LastName" DataField="LastName" UniqueName="LastName"
                                                                    SortExpression="LastName" ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Width="250px">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn HeaderText="FirstName" DataField="FirstName" UniqueName="FirstName"
                                                                    SortExpression="FirstName" ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Width="250px">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn HeaderText="MiddleName" DataField="MiddleName" UniqueName="MiddleName"
                                                                    SortExpression="MiddleName" ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Width="250px">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn HeaderText="NameID" DataField="NameID" UniqueName="NameID"
                                                                    SortExpression="NameID" ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Width="250px" Visible="false">
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings>
                                                            <Resizing AllowColumnResize="false" ClipCellContentOnResize="true" />
                                                        </ClientSettings>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4" align="center">
                                                    <telerik:RadButton ID="btnSelect" runat="server" OnClick="btnSelect_Click" Text="Select">
                                                    </telerik:RadButton>
                                                </td>
                                            </tr>
                                        </table>
                                                     </center>
                                                    </ContentTemplate>
                                                </telerik:RadWindow>
                                            </Windows>
                                        </telerik:RadWindowManager>
                                    </telerik:RadAjaxPanel>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <asp:HiddenField ID="hdnname" Value="0" runat="server" />
                    <asp:HiddenField ID="hdnPanel" runat="server" Value="1" />
                </tr>
            </table>

        </div>
    </asp:Content>

  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1133 posts

    Posted 03 Sep 2013 Link to this post

    Hello Jyosana,

    The AJAX problem is probably caused by the fact that some of the controls on the page including the problematic grid are ajaxifyed by both a RadAjaxManager and RadAjaxPanel. Please modify the logic to use only one of the mentioned controls for ajaxification. Additionally you can examine this help article which elaborates more about this problem.

    Regards,
    Angel Petrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top