This is a migrated thread and some comments may be shown as answers.

Radalert with asp updatepanel

6 Answers 111 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
gila
Top achievements
Rank 1
gila asked on 09 Dec 2010, 09:53 AM

Hello,

We have an application built with default page, which includes iframe for content pages.

Every page in our application is in master page.

Also, most our page built with user controls.

Now, we are calling in code behind from our user controls to a script which has a radalert statement.

Actually we saw that when there is an asp updatepanel in our user control, the radalert doesn’t work.

Calling the same script from the page's code behind, which  has no update panel, works.

We tried also to use the sys.application.add_load and sys.application,remove statements, but nothing works.

 

Do  you have any solution using radalert with update panel on pages?

One mention: we use the update panel with triggers. If u have another control which makes the same work as the update panel, and can be used with radalert, so we will preciate if you explain us the control and how to use it.

 

Thanks,

gila

 

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Dec 2010, 12:02 PM
Hi gila,

Please provide more details about your setup:
  1. Where is the RadWindowManager placed?
  2. Your UpdatePanel configuration?
  3. Where is the control that you want to initiate radalert from the server?

Kind regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Abdul
Top achievements
Rank 1
answered on 12 Aug 2013, 05:26 AM
Hi scolars, 
this is my senario where i could not get radalert message inside asp update panel.
please help me out from this problems.


---code snippets --- below---->>>>

<%@ Page Title="" Language="C#" MasterPageFile="~/UI/Hrms/Ajaxmasterpage/HRDeafult.master" AutoEventWireup="true" CodeFile="LeaveApplication.aspx.cs" Inherits="UI_Hrms_LeaveApplication" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMiddleContent" Runat="Server">

    <asp:Panel ID="pnl1" runat ="server" BorderStyle="None" Height="764px" 
        Width="947px" >
        <%-- this is for demo --%>  
        
        <%-- this is for demo --%>  
        
 <%-- UpdatePanel used for updating table section only.--%>
 <asp:UpdatePanel ID="tableupdate" runat ="server" >  
 <ContentTemplate>                      
        <div>
            <Ajax:BalloonPopupExtender  ID="BalloonPopupExtender2" runat="server" 
        TargetControlID="lblcompany" BalloonPopupControlID="t1"  BalloonStyle="Cloud"  >
            </Ajax:BalloonPopupExtender>
            <asp:TextBox ID="t1" runat ="server" Text ="Displays Current Selected Company"  
            Font-Size ="Small" TextMode="MultiLine"
     ReadOnly ="true" Height="16px" Width="16px" ></asp:TextBox>
     
     <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" 
                Skin="WebBlue" />
                
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            </telerik:RadWindowManager>
            
        </div>
        <div style="width: 942px">
            <ajax:alwaysvisiblecontrolextender ScrollEffectDuration=".1" 
                HorizontalSide="Left"  HorizontalOffset="10"
         VerticalSide="Bottom" VerticalOffset="20" TargetControlID="Image1"
         id="AlwaysVisibleControlExtender2" runat="server">
            </ajax:alwaysvisiblecontrolextender>
        </div>
        
        <fieldset style="height: 623px; width: 946px">
            <legend>
                <asp:Label ID="lblcompany" Text="Company Name"  runat ="server" > </asp:Label>
            </legend>
            <table style="width: 99%; height: 492px;">
                <tr>
                    <td align="left" valign="top" class="style4">
                        <asp:Image ID="Image1" runat="server" BorderWidth="0px" Height="50px" 
                      ImageUrl="~/Skins/ClientImages/63CompanyLogo.jpg" Width="159px" />
                        <ajax:AnimationExtender ID="AnimationExtender2" runat="server" 
                      TargetControlID="Image1">
                            <Animations>
                                <OnLoad>
                                <FadeOut Duration=".5" MinimumOpacity=".2" MaximumOpacity="1" />
                                </OnLoad>
                                <OnHoverOut>
                                <Sequence>
                                <FadeOut Duration=".5" MinimumOpacity=".2" MaximumOpacity="1" />
                                </Sequence>
                                </OnHoverOut>
                                <OnHoverOver>
                                <FadeIn Duration=".5" MinimumOpacity=".2" MaximumOpacity="1" />
                                </OnHoverOver>
                                </Animations>
                        </ajax:AnimationExtender>
                        <asp:Button ID="Button5" runat="server" Text="Button" Visible="False" />
                        <br />
                        <fieldset style="width: 814px" >
                            <legend> 
                             <asp:Label ID="lblemployee" Text="Employee Details"  runat ="server" > </asp:Label>
                            </legend>&nbsp;&nbsp;&nbsp;&nbsp;Mode&nbsp;<asp:RadioButton ID="RadioButton1" 
                                runat="server" Text="Auto" Checked="True"
                                oncheckedchanged="RadioButton1_CheckedChanged" GroupName="R" 
                                ValidationGroup="S" ToolTip="Select Any  One Option" />
                            &nbsp;<asp:RadioButton ID="RadioButton2" 
                                runat="server" Text="Manual" GroupName="R" ValidationGroup="S" 
                                ToolTip="Select Any  One Option" />
                            &nbsp;&nbsp;<telerik:RadDatePicker ID="RadDatePicker1" 
                          Runat="server">
                            <Calendar UseColumnHeadersAsSelectors="False" runat="server"  UseRowHeadersAsSelectors="False" 
                              ViewSelectorText="x">
                            </Calendar>
                            <DatePopupButton HoverImageUrl="" ImageUrl="" />
                            <DateInput DateFormat="dd/MM/yyyy"  runat="server" DisplayDateFormat="dd/MM/yyyy">
                            </DateInput>
                            </telerik:RadDatePicker>
                      &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                          ControlToValidate="RadDatePicker1" ErrorMessage="*" ValidationGroup="s"></asp:RequiredFieldValidator>
&nbsp;<telerik:RadDatePicker ID="RadDatePicker2" Runat="server">
                            </telerik:RadDatePicker>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                          ControlToValidate="RadDatePicker2" ErrorMessage="*" ValidationGroup="s"></asp:RequiredFieldValidator>
                            &nbsp;&nbsp;&nbsp; &nbsp;<asp:Button ID="Button4" runat="server" 
                                CssClass="Button" Height="21px" 
                      Text="Show" ValidationGroup="s" onclick="Button4_Click" />
                  &nbsp;&nbsp;&nbsp;
                            <br />
                        </fieldset >                       
                        <table style="width: 101%; height: 484px;" align="center">
                            <tr>
                                <td align="left" valign="top" style="width: 775px">
                                <div>
                               <table style="width: 912px">
                               <tr>
                                   <td style="width: 118px">
                                        &nbsp;
                                        <asp:Label ID="lbldate" runat="server" Text="Date"></asp:Label>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td style="width: 226px">
                                            &nbsp;<asp:Label ID="lbl1f" runat="server" Text="1st Half"></asp:Label>
                                            &nbsp;
                                            <td>
                                                &nbsp;
                                                <asp:Label ID="lbl2s" runat="server" Text="2nd Half"></asp:Label>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                        </td>
                                   </td>                                   
                               </table>
                                </div>
                                    <asp:Panel ID="htmltablepanel" runat="server" Height="217px" ScrollBars="Auto" 
                                        Width="817px">
                                        <%-- UpdatePanel used for updating table section only.--%>
                                       <%--<asp:UpdatePanel ID="tableupdate" runat ="server" >  
                                        <ContentTemplate>   --%> 
                                        
                                    <telerik:RadToolTipManager ID="RadToolTip1" runat="server"                                     
                                    Position="MiddleRight" RelativeTo="Mouse" Width="82px" Animation="Resize" 
                                            AutoTooltipify="false" 
                                            Text="Leave Application  should be same type and continuos" 
                                            ForeColor="Red" MouseTrailing="True" ManualClose="True" 
                                            ManualCloseButtonText="X" Modal="True" ShowEvent="FromCode"> 
                                        <TargetControls>
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl1f" 
                                                Value="ddl1f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl2f" 
                                                Value="ddl2f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl3f" 
                                                Value="ddl3f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl4f" 
                                                Value="ddl4f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl5f" 
                                                Value="ddl5f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl6f" 
                                                Value="ddl6f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl7f" 
                                                Value="ddl7f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl8f" 
                                                Value="ddl8f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl9f" 
                                                Value="ddl9f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl10f" 
                                                Value="ddl10f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl11f" 
                                                Value="ddl11f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl12f" 
                                                Value="ddl12f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl13f" 
                                                Value="ddl13f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl14f" 
                                                Value="ddl14f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl5f" 
                                                Value="ddl5f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl1s" 
                                                Value="ddl1s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl2s" 
                                                Value="ddl2s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl3s" 
                                                Value="ddl3s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl4s" 
                                                Value="ddl4s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl5s" 
                                                Value="ddl5s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl6s" 
                                                Value="ddl6s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl7s" 
                                                Value="ddl7s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl8s" 
                                                Value="ddl8s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl9s" 
                                                Value="ddl9s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl10s" 
                                                Value="ddl10s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl11s" 
                                                Value="ddl11s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl12s" 
                                                Value="ddl12s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl13s" 
                                                Value="ddl13s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl14s" 
                                                Value="ddl14s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl15s" 
                                                Value="ddl15s" />
                                        </TargetControls>
                                    </telerik:RadToolTipManager> 
                    
                                                                               
                                        <table id="dhtml" runat ="server"  style="width:660px; height: auto;" 
                                            align="left">
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Width="100px"></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl1f" runat="server" Height="21px" Width="220px" 
                                                        AppendDataBoundItems="True" 
                                                        OnSelectedIndexChanged ="ddl1f_SelectedIndexChanged" AutoPostBack="True">
                                                    </asp:DropDownList>--%>                                                    
                                                        <telerik:RadComboBox ID="ddl1f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl1f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl1f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl1s" runat="server" Height="21px" Width="220px"
                                                    AppendDataBoundItems="True" AutoPostBack="True" >
                                                    </asp:DropDownList>--%>                                                    
                                                        <telerik:RadComboBox ID="ddl1s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl1s_SelectedIndexChanged"  AutoPostBack="True" 
                                                            OnDataBound ="ddl1s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>                                                   
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True" Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl2f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl2f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl2f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl2f_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl2s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    <telerik:RadComboBox ID="ddl2s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl2s_SelectedIndexChanged" AutoPostBack="True" 
                                                           OnDataBound ="ddl2s_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl3f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True"  >                                                    
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl3f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl3f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl3f_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                    
                                                </td>
                                                <td>
                                                  <%--  <asp:DropDownList ID="ddl3s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                      <telerik:RadComboBox ID="ddl3s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl3s_SelectedIndexChanged" AutoPostBack="True" 
                                                           OnDataBound ="ddl3s_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox4" runat="server" ReadOnly="True" Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                   <%-- <asp:DropDownList ID="ddl4f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    
                                                    <telerik:RadComboBox ID="ddl4f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl4f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl4f_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl4s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    <telerik:RadComboBox ID="ddl4s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl4s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl4s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox5" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl5f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl5f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl5f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl5f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl5s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl5s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl5s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl5s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox6" runat="server" ReadOnly="True"  Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl6f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True"  >
                                                    </asp:DropDownList>--%>
                                                    
                                                      <telerik:RadComboBox ID="ddl6f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl6f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl6f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl6s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl6s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl6s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl6s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox7" runat="server" ReadOnly="True"  Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                   <%-- <asp:DropDownList ID="ddl7f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl7f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl7f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl7f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl7s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl7s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl7s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl7s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox8" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl8f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl8f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl8f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl8f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl8s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl8s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl8s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl8s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox9" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                  <%--  <asp:DropDownList ID="ddl9f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl9f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl9f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl9f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl9s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl9s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl9s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl9s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox10" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl10f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                      <telerik:RadComboBox ID="ddl10f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl10f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl10f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl10s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                       <telerik:RadComboBox ID="ddl10s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl10s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl10s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox11" runat="server" ReadOnly="True" Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl11f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True"  >
                                                    </asp:DropDownList>--%>
                                                    
                                                         <telerik:RadComboBox ID="ddl11f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl11f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl11f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl11s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl11s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl11s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl11s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox12" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl12f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl12f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl12f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl12f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl12s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl12s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl12s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl12s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox13" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl13f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    <telerik:RadComboBox ID="ddl13f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl13f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl13f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl13s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl13s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl13s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl13s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox14" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl14f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl14f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl14f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl14f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl14s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl14s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl14s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl14s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox15" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl15f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl15f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl15f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl15f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl15s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl15s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl15s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl15s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                        </table>  
                                        <%--</ContentTemplate>
                                         <Triggers>
                                         <asp:AsyncPostBackTrigger ControlID="Button5"
                                         EventName="Click" />
                                        </Triggers>
                                         </asp:UpdatePanel>--%>
                                         <%-- UpdatePanel used for updating table section only.--%></asp:Panel>                                    
                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="width: 775px">
                                   <div style="width: 823px">
                                       <fieldset style="width: 809px; height: 95px;" >
                                       <legend >
                                           Leave Reason
                                       </legend>
                                           <asp:Label ID="Label1" runat="server" Text="No Of Days"></asp:Label>
                                           <asp:TextBox ID="txtnoofdays" runat="server" Width="70px" MaxLength="365" 
                                               ReadOnly="True"></asp:TextBox>
                                           <asp:Label ID="Label2" runat="server" Text="Reason"></asp:Label>
                                           <telerik:RadComboBox ID="RadComboBox1" Runat="server" 
                                               AppendDataBoundItems="True" EmptyMessage="Select Reason" ExpandDelay="500" Skin="WebBlue"
                                               OnDataBound ="RadComboBox1_DataBound"
                                               >
                                             
                                               <ExpandAnimation Type="OutBounce"/>
                                               <Items>
                                                   <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                               </Items>
                                               <CollapseAnimation Type="OutBounce" />
                                           </telerik:RadComboBox>
                                           <asp:Label ID="Label3" runat="server" Text="Remarks"></asp:Label>
                                           <telerik:RadTextBox ID="RadTextBox1" Runat="server" EmptyMessage="Remarks" 
                                               Skin="WebBlue" Width="250px">
                                           </telerik:RadTextBox>
                                           <br />
                                           <br />
                                       </fieldset>
                                  </div>
                                    <telerik:RadGrid ID="RadGrid1" runat="server" Height="105px" Width="566px" 
                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                        GridLines="None" Skin="WebBlue">
                                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                        </HeaderContextMenu>
                                        <MasterTableView>
                                            <CommandItemSettings ExportToPdfText="Export to Pdf" />
                                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                            </ExpandCollapseColumn>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="lcodeid" 
                                                    FilterControlAltText="Filter column column" HeaderButtonType="None" 
                                                    HeaderText="lcodeid" UniqueName="column" Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="NAME" 
                                                    FilterControlAltText="Filter column1 column" HeaderButtonType="None" 
                                                    HeaderText="Leave Type" UniqueName="column1">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ACCBAL" 
                                                    FilterControlAltText="Filter column2 column" HeaderButtonType="None" 
                                                    HeaderText="Openning" UniqueName="column2">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="USEDBAL" 
                                                    FilterControlAltText="Filter column3 column" HeaderText="Availed" 
                                                    UniqueName="column3" HeaderButtonType="None">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="BAL" 
                                                    FilterControlAltText="Filter column4 column" HeaderText="Balance" 
                                                    UniqueName="column4" HeaderButtonType="None">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn DataField="leaveCode" 
                                                    FilterControlAltText="Filter column5 column" HeaderText="leaveCode" 
                                                    Visible="False"
                                                    UniqueName="column5" HeaderButtonType="None">
                                                </telerik:GridBoundColumn>
                                                
                                            </Columns>
                                            <EditFormSettings>
                                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                                </EditColumn>
                                            </EditFormSettings>
                                        </MasterTableView>
                                        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                                            <Selecting AllowRowSelect="True" />
                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                        </ClientSettings>
                                        <FilterMenu EnableImageSprites="False">
                                        </FilterMenu>
                                    </telerik:RadGrid>
                                </td>
                                
                            </tr>
                                
                                    <tr>
                                        <td align="center" style="width: 775px">
                                            <asp:Button ID="SaveBtn" runat="server" CssClass="Button" Height="21px" 
                                                onclick="SaveBtn_Click" Text="Save" />
                                        </td>
                            </tr>
                                    </td>
                            </tr>
                        </table>
                        <div>
                        </div>
                    </td>
                </tr>
            </table>
        </fieldset>
        
        </ContentTemplate>
     <Triggers>
     <asp:AsyncPostBackTrigger ControlID="Button4"
     EventName="Click" />
    </Triggers>
     </asp:UpdatePanel>
     <%-- UpdatePanel used for updating table section only.--%>
                                         
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphButtons" Runat="Server">
</asp:Content>
0
Marin Bratanov
Telerik team
answered on 13 Aug 2013, 09:15 AM
Hello Abdul,

Nowhere in these 700+ lines of code is there a call to radalert() which makes is impossible to determine the reason for the problem you are having. If we do not know how you open the dialog we cannot say what is going wrong in the other case.

What I can suggest at this point is the following:
- examine this article in case you have special symbols: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-dialogs-from-the-server-methods.html.
- look for a server error that would alter the response
- examine this demo to see how the server methods can be used, because they work during partial postbacks as well: http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx.
- take the RadWindowManager out of the update panel as it would hardly need to be updated

Regards,
Marin Bratanov
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.
0
Abdul
Top achievements
Rank 1
answered on 13 Aug 2013, 11:08 AM
Telerik version and other information: Radcontrols for asp.net ajax q3 2010.


----------------------the design aspx file-----------

<%@ Page Title="" Language="C#" MasterPageFile="~/UI/Hrms/Ajaxmasterpage/HRDeafult.master" AutoEventWireup="true" CodeFile="LeaveApplication.aspx.cs" Inherits="UI_Hrms_LeaveApplication" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMiddleContent" Runat="Server">

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            </telerik:RadWindowManager>
            
    <asp:Panel ID="pnl1" runat ="server" BorderStyle="None" Height="764px" 
        Width="947px" >
        <asp:Button ID="radalertoutsideaspupdatepanel" runat ="server"  Text ="Click me"  OnClick ="radalertoutsideaspupdatepanel_click"/>
 <%-- UpdatePanel used for updating table section only.--%>
 <asp:UpdatePanel ID="tableupdate" runat ="server" >  
 <ContentTemplate>                      
        <div>
            <Ajax:BalloonPopupExtender  ID="BalloonPopupExtender2" runat="server" 
        TargetControlID="lblcompany" BalloonPopupControlID="t1"  BalloonStyle="Cloud"  >
            </Ajax:BalloonPopupExtender>
            <asp:TextBox ID="t1" runat ="server" Text ="Displays Current Selected Company"  
            Font-Size ="Small" TextMode="MultiLine"
     ReadOnly ="true" Height="16px" Width="16px" ></asp:TextBox>
     
     <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" 
                Skin="WebBlue" 
                
                
                DecoratedControls="CheckBoxes, RadioButtons, Buttons, Textbox, Textarea, Fieldset, Label, H4H5H6, Select" 
                ControlsToSkip="Fieldset" />
                
         <%--   <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            </telerik:RadWindowManager>--%>
            
        </div>
        <div style="width: 942px">
            <ajax:alwaysvisiblecontrolextender ScrollEffectDuration=".1" 
                HorizontalSide="Left"  HorizontalOffset="10"
         VerticalSide="Bottom" VerticalOffset="20" TargetControlID="Image1"
         id="AlwaysVisibleControlExtender2" runat="server">
            </ajax:alwaysvisiblecontrolextender>
        </div>
        
        <fieldset style="height: 623px; width: 946px">
            <legend>
                <asp:Label ID="lblcompany" Text="Company Name"  runat ="server" > </asp:Label>
            </legend>
            <table style="width: 99%; height: 492px;">
                <tr>
                    <td align="left" valign="top" class="style4">
                        <asp:Image ID="Image1" runat="server" BorderWidth="0px" Height="50px" 
                      ImageUrl="~/Skins/ClientImages/63CompanyLogo.jpg" Width="159px" />
                        <ajax:AnimationExtender ID="AnimationExtender2" runat="server" 
                      TargetControlID="Image1">
                            <Animations>
                                <OnLoad>
                                <FadeOut Duration=".5" MinimumOpacity=".2" MaximumOpacity="1" />
                                </OnLoad>
                                <OnHoverOut>
                                <Sequence>
                                <FadeOut Duration=".5" MinimumOpacity=".2" MaximumOpacity="1" />
                                </Sequence>
                                </OnHoverOut>
                                <OnHoverOver>
                                <FadeIn Duration=".5" MinimumOpacity=".2" MaximumOpacity="1" />
                                </OnHoverOver>
                                </Animations>
                        </ajax:AnimationExtender>
                        <asp:Button ID="Button5" runat="server" Text="Button" Visible="False" />
                        <br />
                        <fieldset style="width: 817px; height: 47px;" >
                            <legend> 
                             <asp:Label ID="lblemployee" Text="Employee Details"  runat ="server" > </asp:Label>
                            </legend>&nbsp;&nbsp;&nbsp;&nbsp;Mode&nbsp;<asp:RadioButton ID="RadioButton1" 
                                runat="server" Text="Auto" Checked="True"
                                oncheckedchanged="RadioButton1_CheckedChanged" GroupName="R" 
                                ValidationGroup="S" ToolTip="Select Any  One Option" />
                            &nbsp;<asp:RadioButton ID="RadioButton2" 
                                runat="server" Text="Manual" GroupName="R" ValidationGroup="S" 
                                ToolTip="Select Any  One Option" />
                            &nbsp;&nbsp;<telerik:RadDatePicker ID="RadDatePicker1" 
                          Runat="server" Height="19px" ShowPopupOnFocus="True" Skin="WebBlue" 
                                ToolTip="Select greater  Than or equal date">
                            <Calendar UseColumnHeadersAsSelectors="False" runat="server"  UseRowHeadersAsSelectors="False" 
                              ViewSelectorText="x" Skin="WebBlue">
                            </Calendar>
                            <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                <ShowAnimation Type="Slide" />
                            <DateInput DateFormat="dd/MM/yyyy"  runat="server" DisplayDateFormat="dd/MM/yyyy" 
                                    Height="19px">
                            </DateInput>
                                <HideAnimation Type="Slide" />
                            </telerik:RadDatePicker>
                      &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                          ControlToValidate="RadDatePicker1" ErrorMessage="*" ValidationGroup="s"></asp:RequiredFieldValidator>
&nbsp;<telerik:RadDatePicker ID="RadDatePicker2" Runat="server" Height="19px" ShowPopupOnFocus="True" 
                                Skin="WebBlue" ToolTip="Select greater  Than or equal date">
                                <Calendar Skin="WebBlue" UseColumnHeadersAsSelectors="False" 
                                    UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                                </Calendar>
                                <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                <ShowAnimation Type="Slide" />
                                <DateInput DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" Height="19px">
                                </DateInput>
                                <HideAnimation Type="Slide" />
                            </telerik:RadDatePicker>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                          ControlToValidate="RadDatePicker2" ErrorMessage="*" ValidationGroup="s"></asp:RequiredFieldValidator>
                            &nbsp;&nbsp;&nbsp; &nbsp;<asp:Button ID="Button4" runat="server" 
                                CssClass="Button" Height="21px" 
                      Text="Show" ValidationGroup="s" onclick="Button4_Click" />
                  &nbsp;&nbsp;&nbsp;
                            <br />
                        </fieldset >                       
                        <table style="width: 101%; height: 484px;" align="center">
                            <tr>
                                <td align="left" valign="top" style="width: 775px">
                                <div>
                               <table style="width: 912px">
                               <tr>
                                   <td style="width: 118px">
                                        &nbsp;
                                        <asp:Label ID="lbldate" runat="server" Text="Date"></asp:Label>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td style="width: 226px">
                                            &nbsp;<asp:Label ID="lbl1f" runat="server" Text="1st Half"></asp:Label>
                                            &nbsp;
                                            <td>
                                                &nbsp;
                                                <asp:Label ID="lbl2s" runat="server" Text="2nd Half"></asp:Label>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                        </td>
                                   </td>                                   
                               </table>
                                </div>
                                    <asp:Panel ID="htmltablepanel" runat="server" Height="217px" ScrollBars="Auto" 
                                        Width="817px">
                                        <%-- UpdatePanel used for updating table section only.--%>
                                       <%--<asp:UpdatePanel ID="tableupdate" runat ="server" >  
                                        <ContentTemplate>   --%> 
                                        
                                    <telerik:RadToolTipManager ID="RadToolTip1" runat="server"                                     
                                    Position="MiddleRight" RelativeTo="Mouse" Width="82px" Animation="Resize" 
                                            AutoTooltipify="false" 
                                            Text="Leave Application  should be same type and continuos" 
                                            ForeColor="Red" MouseTrailing="True" ManualClose="True" 
                                            ManualCloseButtonText="X" Modal="True" ShowEvent="FromCode" Skin="WebBlue"> 
                                        <TargetControls>
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl1f" 
                                                Value="ddl1f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl2f" 
                                                Value="ddl2f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl3f" 
                                                Value="ddl3f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl4f" 
                                                Value="ddl4f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl5f" 
                                                Value="ddl5f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl6f" 
                                                Value="ddl6f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl7f" 
                                                Value="ddl7f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl8f" 
                                                Value="ddl8f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl9f" 
                                                Value="ddl9f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl10f" 
                                                Value="ddl10f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl11f" 
                                                Value="ddl11f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl12f" 
                                                Value="ddl12f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl13f" 
                                                Value="ddl13f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl14f" 
                                                Value="ddl14f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl5f" 
                                                Value="ddl5f" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl1s" 
                                                Value="ddl1s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl2s" 
                                                Value="ddl2s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl3s" 
                                                Value="ddl3s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl4s" 
                                                Value="ddl4s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl5s" 
                                                Value="ddl5s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl6s" 
                                                Value="ddl6s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl7s" 
                                                Value="ddl7s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl8s" 
                                                Value="ddl8s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl9s" 
                                                Value="ddl9s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl10s" 
                                                Value="ddl10s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl11s" 
                                                Value="ddl11s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl12s" 
                                                Value="ddl12s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl13s" 
                                                Value="ddl13s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl14s" 
                                                Value="ddl14s" />
                                            <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="ddl15s" 
                                                Value="ddl15s" />
                                        </TargetControls>
                                    </telerik:RadToolTipManager> 
                    
                                                                               
                                        <table id="dhtml" runat ="server"  style="width:660px; height: auto;" 
                                            align="left">
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Width="100px"></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl1f" runat="server" Height="21px" Width="220px" 
                                                        AppendDataBoundItems="True" 
                                                        OnSelectedIndexChanged ="ddl1f_SelectedIndexChanged" AutoPostBack="True">
                                                    </asp:DropDownList>--%>                                                    
                                                        <telerik:RadComboBox ID="ddl1f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl1f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl1f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl1s" runat="server" Height="21px" Width="220px"
                                                    AppendDataBoundItems="True" AutoPostBack="True" >
                                                    </asp:DropDownList>--%>                                                    
                                                        <telerik:RadComboBox ID="ddl1s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl1s_SelectedIndexChanged"  AutoPostBack="True" 
                                                            OnDataBound ="ddl1s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>                                                   
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True" Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl2f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl2f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl2f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl2f_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl2s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    <telerik:RadComboBox ID="ddl2s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl2s_SelectedIndexChanged" AutoPostBack="True" 
                                                           OnDataBound ="ddl2s_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl3f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True"  >                                                    
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl3f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl3f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl3f_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                    
                                                </td>
                                                <td>
                                                  <%--  <asp:DropDownList ID="ddl3s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                      <telerik:RadComboBox ID="ddl3s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl3s_SelectedIndexChanged" AutoPostBack="True" 
                                                           OnDataBound ="ddl3s_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox4" runat="server" ReadOnly="True" Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                   <%-- <asp:DropDownList ID="ddl4f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    
                                                    <telerik:RadComboBox ID="ddl4f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl4f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl4f_DataBound" >
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox>
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl4s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    <telerik:RadComboBox ID="ddl4s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl4s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl4s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox5" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl5f" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl5f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl5f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl5f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl5s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl5s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl5s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl5s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox6" runat="server" ReadOnly="True"  Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl6f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True"  >
                                                    </asp:DropDownList>--%>
                                                    
                                                      <telerik:RadComboBox ID="ddl6f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl6f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl6f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl6s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl6s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl6s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl6s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox7" runat="server" ReadOnly="True"  Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                   <%-- <asp:DropDownList ID="ddl7f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl7f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl7f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl7f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl7s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl7s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl7s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl7s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox8" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl8f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl8f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl8f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl8f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl8s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl8s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl8s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl8s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox9" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                  <%--  <asp:DropDownList ID="ddl9f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl9f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl9f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl9f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl9s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl9s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl9s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl9s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox10" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl10f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                      <telerik:RadComboBox ID="ddl10f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl10f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl10f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl10s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                       <telerik:RadComboBox ID="ddl10s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl10s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl10s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox11" runat="server" ReadOnly="True" Width="100px"  ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl11f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True"  >
                                                    </asp:DropDownList>--%>
                                                    
                                                         <telerik:RadComboBox ID="ddl11f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl11f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl11f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                   <%-- <asp:DropDownList ID="ddl11s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl11s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl11s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl11s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox12" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl12f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl12f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl12f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl12f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl12s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                     <telerik:RadComboBox ID="ddl12s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl12s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl12s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox13" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl13f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    <telerik:RadComboBox ID="ddl13f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl13f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl13f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl13s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl13s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl13s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl13s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox14" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl14f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl14f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl14f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl14f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl14s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl14s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl14s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl14s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 118px">
                                                    <asp:TextBox ID="TextBox15" runat="server" ReadOnly="True"  Width="100px" ></asp:TextBox>
                                                </td>
                                                <td style="width: 226px">
                                                    <%--<asp:DropDownList ID="ddl15f" runat="server" Height="21px" 
                                                        Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl15f" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl15f_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl15f_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                                <td>
                                                    <%--<asp:DropDownList ID="ddl15s" runat="server" Height="21px" Width="220px" AppendDataBoundItems="True" >
                                                    </asp:DropDownList>--%>
                                                    
                                                    <telerik:RadComboBox ID="ddl15s" Runat="server" 
                                                            AppendDataBoundItems="True" EmptyMessage="Select LeaveType" ExpandDelay="500" Skin="WebBlue"                                                     
                                                            OnSelectedIndexChanged ="ddl15s_SelectedIndexChanged" AutoPostBack="True" 
                                                            OnDataBound ="ddl15s_DataBound">
                                                            <ExpandAnimation Type="OutBounce"/>
                                                            <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                                            </Items>
                                                            <CollapseAnimation Type="OutBounce" />
                                                        </telerik:RadComboBox> 
                                                        
                                                </td>
                                            </tr>
                                        </table>  
                                        <%--</ContentTemplate>
                                         <Triggers>
                                         <asp:AsyncPostBackTrigger ControlID="Button5"
                                         EventName="Click" />
                                        </Triggers>
                                         </asp:UpdatePanel>--%>
                                         <%-- UpdatePanel used for updating table section only.--%></asp:Panel>                                    
                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="width: 775px">
                                   <div style="width: 826px; height: 73px;">
                                       <fieldset style="width: 813px; height: 51px;" >
                                       <legend >
                                           Leave Reason
                                       </legend>
                                           <asp:Label ID="Label1" runat="server" Text="No Of Days"></asp:Label>
                                           <asp:TextBox ID="txtnoofdays" runat="server" Width="70px" MaxLength="365" 
                                               ReadOnly="True"></asp:TextBox>
                                           <asp:Label ID="Label2" runat="server" Text="Reason"></asp:Label>
                                           <telerik:RadComboBox ID="RadComboBox1" Runat="server" 
                                               AppendDataBoundItems="True" EmptyMessage="Select Reason" ExpandDelay="500" Skin="WebBlue"
                                               OnDataBound ="RadComboBox1_DataBound"
                                               >
                                             
                                               <ExpandAnimation Type="OutBounce"/>
                                               <Items>
                                                   <telerik:RadComboBoxItem runat="server" Text=" " Value=" " />
                                               </Items>
                                               <CollapseAnimation Type="OutBounce" />
                                           </telerik:RadComboBox>
                                           <asp:Label ID="Label3" runat="server" Text="Remarks"></asp:Label>
                                           <telerik:RadTextBox ID="RadTextBox1" Runat="server" EmptyMessage="Remarks" 
                                               Skin="WebBlue" Width="250px">
                                           </telerik:RadTextBox>
                                           <br />
                                           <br />
                                       </fieldset>
                                  </div>
                                  <div style="width: 824px">
                                    <telerik:RadGrid ID="RadGrid1" runat="server" Height="105px" Width="566px" 
                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                        GridLines="None" Skin="WebBlue">
                                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                        </HeaderContextMenu>
                                        <MasterTableView>
                                            <CommandItemSettings ExportToPdfText="Export to Pdf" />
                                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                            </ExpandCollapseColumn>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="lcodeid" 
                                                    FilterControlAltText="Filter column column" HeaderButtonType="None" 
                                                    HeaderText="lcodeid" UniqueName="column" Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="NAME" 
                                                    FilterControlAltText="Filter column1 column" HeaderButtonType="None" 
                                                    HeaderText="Leave Type" UniqueName="column1">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ACCBAL" 
                                                    FilterControlAltText="Filter column2 column" HeaderButtonType="None" 
                                                    HeaderText="Openning" UniqueName="column2">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="USEDBAL" 
                                                    FilterControlAltText="Filter column3 column" HeaderText="Availed" 
                                                    UniqueName="column3" HeaderButtonType="None">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="BAL" 
                                                    FilterControlAltText="Filter column4 column" HeaderText="Balance" 
                                                    UniqueName="column4" HeaderButtonType="None">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridBoundColumn DataField="leaveCode" 
                                                    FilterControlAltText="Filter column5 column" HeaderText="leaveCode" 
                                                    Visible="False"
                                                    UniqueName="column5" HeaderButtonType="None">
                                                </telerik:GridBoundColumn>
                                                
                                            </Columns>
                                            <EditFormSettings>
                                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                                </EditColumn>
                                            </EditFormSettings>
                                        </MasterTableView>
                                        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                                            <Selecting AllowRowSelect="True" />
                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                        </ClientSettings>
                                        <FilterMenu EnableImageSprites="False">
                                        </FilterMenu>
                                    </telerik:RadGrid>
                                    </div>
                                </td>
                                
                            </tr>
                                
                                    <tr>
                                        <td align="center" style="width: 775px">
                                            <asp:Button ID="SaveBtn" runat="server" CssClass="Button" Height="21px" 
                                                onclick="SaveBtn_Click" Text="Save" />
                                        </td>
                            </tr>
                                    </td>
                            </tr>
                        </table>
                        <div>
                        </div>
                    </td>
                </tr>
            </table>
        </fieldset>
        
        </ContentTemplate>
     <Triggers>
     <asp:AsyncPostBackTrigger ControlID="Button4"
     EventName="Click" />
    </Triggers>
     </asp:UpdatePanel>
     <%-- UpdatePanel used for updating table section only.--%>
                                         
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphButtons" Runat="Server">
</asp:Content>

----------------------end of aspx file-----------

now i want to use radalert message from code behind file .aspx.cs

note : (my all buttons and controls are inside asp:update panel)****
   

i use this radalert  inside buttn4 (button id) ----->code behind .aspx.cs file but still having problem
----------if i use this alert outside from asp:update panel like if i placed another button but outside asp:update panel and use the same code it displays the alert message...
please check this issue
---------------------------------------

protected void Button4_Click(object sender, EventArgs e)
    {


 string radalertscript = "<script language='javascript'>function f(){radalert('  " + "Maximum 15 days leave can apply at a time"  + "', '" + "150" + "', '" + "250" + "', 'Information Message '); Sys.Application.remove_load(f);}; Sys.Application.add_load(f); </script>";

            this.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);
    /////    note this alert doesnot appears---- because  button4 is inside asp:update panel.
}


protected void radalertoutsideaspupdatepanel_click(object sender, EventArgs e)
    {

        string radalertscript = "<script language='javascript'>function f(){radalert('  " + "Maximum 15 days leave can apply at a time" + "', '" + "150" + "', '" + "250" + "', 'Information Message '); Sys.Application.remove_load(f);}; Sys.Application.add_load(f); </script>";

        this.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);

///-----note this alert appears---- because  radalertoutsideaspupdatepanel  
/// is outside asp:update panel.


    }
0
Marin Bratanov
Telerik team
answered on 14 Aug 2013, 10:07 AM
Hi Abdul,

To successfully register a script from the code-behind during a partial postback you need to use the ScriptManager.RegisterStartupScript() method because the ClientScript.RegisterStartupScript() method will not work.
Details on that are available in the following help article: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-javascript-from-server-side.html.


Regards,
Marin Bratanov
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.
0
Abdul
Top achievements
Rank 1
answered on 14 Aug 2013, 11:34 AM

 thank

 

Marin Bratanov

 

Tags
Ajax
Asked by
gila
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Abdul
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or