Issues for javascript IE8 validation for tabControls

2 posts, 0 answers
  1. Rathan
    Rathan avatar
    20 posts
    Member since:
    Oct 2011

    Posted 20 Apr 2012 Link to this post

    <script type="text/javascript">
    function selectTab() {
        var tabStrip = $find("<%= radTabIn.ClientID %>");
        var pageView = $find("<%= radIPPage.ClientID %>");
        var pageViewIndex = parseInt(6);
         
        var text = "Doctor Details";
        var tab = tabStrip.findTabByText(text);
        if (!tab) {
            alert("There is no tab with text \"" + text + "\"");
            return false;
        }
      
        tab.set_selected(true); //The same as tab.select();
        pageView.get_pageViews().getPageView(pageViewIndex).set_selected(true);
        return false;
    }
               
      </script>
      
    <telerik:RadTabStrip ID="radTabIn" runat="server" Skin="Web20" SelectedIndex="0"  style="float:none" MultiPageID="radIPPage" Width="100%">
                               <Tabs>
                    <telerik:RadTab Text="<span class='underline'>R</span>egistration Address" Width="22%" TabIndex="0" Selected="True" 
                                       AccessKey="R" ToolTip="Alt+r">
                    </telerik:RadTab>
                    <telerik:RadTab Text="<span class='underline'>P</span>atient Details" Width="22%" TabIndex="1" AccessKey="P" ToolTip="Alt+p">
                    </telerik:RadTab>
                    <telerik:RadTab  Text="<span class='underline'>W</span>ork Address" Width="21%" TabIndex="2" AccessKey="W" ToolTip="Alt+w">
                    </telerik:RadTab>
                    <telerik:RadTab IsBreak="true" Text="Past <span class='underline'>H</span>istroy" Width="25%" TabIndex="3" AccessKey="H" 
                                       ToolTip="Alt+h">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Aller<span class='underline'>g</span>ies" Width="22%" TabIndex="4" AccessKey="G" ToolTip="Alt+g">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Ha<span class='underline'>b</span>its-Immunisation" Width="22%" TabIndex="5" AccessKey="B" 
                                       ToolTip="Alt+m">
                    </telerik:RadTab>
                    <telerik:RadTab Text="D<span class='underline'>o</span>ctor Details" Width="21%" TabIndex="6" AccessKey="O" ToolTip="Alt+o">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Roo<span class='underline'>m</span> Allotment" Width="25%" TabIndex="7" AccessKey="M" ToolTip="Alt+m">
                    </telerik:RadTab>
                </Tabs>
                                    </telerik:RadTabStrip>
      <telerik:RadMultiPage ID="radIPPage" runat="server" SelectedIndex="0" Width="750">
                                    <telerik:RadPageView ID="RadPageREGAdd" runat="server" AccessKey="R">
                                     <asp:Panel ID="pnlREAdd" runat="server" Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                   <fieldset >
                                   <legend ><b style="color:Maroon">Registration Address</b> </legend>
                                     <table width="100%" cellpadding="1px" align="center"  cellspacing="1px">
      
                                        <tr>
                                            <td align="left" colspan="6">
                                              </td>
                                        </tr>
                                      
                                    <tr>
                                    <td style="width:100px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label4" runat="server"  Font-Bold="false" Text="HNo/Street:" Width="60"  
                                            Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtStreet" runat="server"  
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="50" onkeypress=" return valid(event,71)" TabIndex="13" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox><span style="font-size: 8pt; color: maroon">*</span>
                                    </td>
                                    <td align="left">
                                    <asp:Label ID="Label8" runat="server" Font-Bold="false" Text="Pin Code:" Width="60"   Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"  ></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtPincode" runat="server"  
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="8"  TabIndex="19" onkeypress="return MobileNo(event,7)" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:100px"> </td>
                                    </tr>
                                    <tr>
                                      <td style="width:100px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label9" Font-Bold="false" runat="server" Text="Area:" Width="60"  Font-Names="Verdana" 
                                            Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left"
                                    <asp:TextBox ID="txtArea" runat="server"  
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="50" onkeypress=" return valid(event,71)" TabIndex="14" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox><span style="font-size: 8pt; color: maroon">*</span>
                                    </td>
                                    <td align="left">
                                    <asp:Label ID="Label12" runat="server" Font-Bold="false" Text="Phone:" Width="60"  
                                            Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtPhone" runat="server"  
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="14"  TabIndex="20" onkeypress="return MobileNo(event,15)" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:100px"> </td>
                                    </tr>
                                    <tr>
                                     <td style="width:100px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label13" runat="server" Font-Bold="false" Text="City/Village" Width="60"  
                                            Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtCity" runat="server"   
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="50" onkeypress=" return valid(event,51)" TabIndex="15" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox><span style="font-size: 8pt; color: maroon">*</span>
                                    </td>
                                    <td align="left">
                                    <asp:Label ID="Label14" runat="server" Font-Bold="false" Text="Cell No:" Width="60"  
                                            Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtCellNo" runat="server" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="14"  TabIndex="21" onkeypress="return MobileNo(event,15)" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox><span style="font-size: 8pt; color: maroon">*</span>
                                    </td>
                                      <td style="width:100px"> </td>
                                    </tr>
                                    <tr>
                                      <td style="width:100px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label15" runat="server" Font-Bold="false" Text="Mandal:" Width="60"  
                                            Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtMandal" runat="server"  
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="50" onkeypress=" return valid(event,71)" TabIndex="16" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                    <td align="left">
                                    <asp:Label ID="Label20" runat="server" Font-Bold="false" Text="Fax:" Width="60"  Font-Names="Verdana" 
                                            Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtFax" runat="server"  
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="20"  TabIndex="22" onkeypress="return MobileNo(event,21)" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:100px"> </td>
                                    </tr>
                                    <tr>
                                      <td style="width:100px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label21" runat="server" Font-Bold="false" Text="District:" Width="60"  
                                            Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtDistrict" runat="server" Font-Bold="false"
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            MaxLength="50" onkeypress=" return valid(event,51)" TabIndex="17" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox><span style="font-size: 8pt; color: maroon">*</span> </td>
                                    <td align="left">
                                      
                                        <asp:Label ID="Label22" runat="server" Font-Names="Verdana" Font-Bold="false " Font-Size="8.5pt" 
                                            ForeColor="Maroon" Text="Email:" Width="60"></asp:Label>
                                      
                                    </td>
                                      
                                        <td align="left">
                                            <asp:TextBox ID="txtEmail" runat="server" MaxLength="70" 
                                                style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" 
                                                TabIndex="22" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                        </td>
                                          <td style="width:100px"> </td>
                                      
                                    </tr>
                                        <tr>
                                          <td style="width:100px"> </td>
                                            <td align="left">
                                                <asp:Label ID="Label23" runat="server" Font-Names="Verdana" Font-Bold="false" Font-Size="8.5pt" 
                                                    ForeColor="Maroon" Text="State:" Width="60"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtSate" runat="server" MaxLength="50" 
                                                    onkeypress=" return valid(event,71)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" TabIndex="18" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                            </td>
                                            <td colspan="2">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" colspan="4">
                                                 </td>
                                                  <td style="width:100px"> </td>
                                        </tr>
                                    </table>
                                     </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPagePatient" runat="server" AccessKey="P">
                                    <asp:Panel ID="pnlPatient" runat="server" Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                   <fieldset >
                                   <legend ><b style="color:Maroon"> Patient Details</b></legend>
                                    <table width="100%" cellpadding="0" align="center"  cellspacing="0">
                                     
                                        <tr>
                                            <td align="left">
                                                 </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <table>
                                                    <tr>
                                                        <td align="left" >
                                                            <asp:Label ID="Label24" runat="server" Font-Bold="false"  Font-Names="Verdana" Font-Size="8.5pt" 
                                                                ForeColor="Maroon" Text="Occupation:" Width="60"></asp:Label>
                                                        </td>
                                                        <td align="left" >
                                                            <asp:DropDownList ID="ddlOccuption" runat="server" Font-Names="Verdana" 
                                                                Font-Size="8.5pt" Width="155px" TabIndex="19">
                                                                <asp:ListItem Text="" Value=""></asp:ListItem>
                                                                <asp:ListItem Text="Employee" Value="Employee"></asp:ListItem>
                                                                <asp:ListItem Text="Business" Value="Business"></asp:ListItem>
                                                                <asp:ListItem Text="Profession" Value="Profession"></asp:ListItem>
                                                                <asp:ListItem Text="Housewife" Value="Housewife"></asp:ListItem>
                                                                <asp:ListItem Text="Others" Value="Others"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" >
                                                            <asp:Label ID="Label25" runat="server" Font-Names="Verdana" Font-Size="8.5pt" 
                                                                ForeColor="Maroon" Font-Bold="false" Text="Religion:" Width="60"></asp:Label>
                                                        </td>
                                                        <td align="left" >
                                                            <asp:DropDownList ID="ddlRelgion" runat="server" Font-Names="Verdana" 
                                                                Font-Size="8.5pt" Width="155px" TabIndex="20">
                                                                <asp:ListItem Text="" Value="">
                                            </asp:ListItem>
                                                                <asp:ListItem Text="Christion" Value="Christion"></asp:ListItem>
                                                                <asp:ListItem Text="Hindu" Value="Hindu"></asp:ListItem>
                                                                <asp:ListItem Text="Muslim" Value="Muslim"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" >
                                                            <asp:Label ID="Label26" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt" 
                                                                ForeColor="Maroon" Text="Education:" Width="60"></asp:Label>
                                                        </td>
                                                        <td align="left" >
                                                            <asp:DropDownList ID="ddlEducation" runat="server" Font-Names="Verdana" 
                                                                Font-Size="8.5pt" Width="155px" TabIndex="21">
                                                                <asp:ListItem Text="" Value=""></asp:ListItem>
                                                                <asp:ListItem Text="Graduation" Value="Graduation"></asp:ListItem>
                                                                <asp:ListItem Text="PostGraduation" Value="PostGraduation"></asp:ListItem>
                                                                <asp:ListItem Text="SSC" Value="SSC"></asp:ListItem>
                                                                <asp:ListItem Text="Intermediate" Value="Intermediate"></asp:ListItem>
                                                                <asp:ListItem Text="Others" Value="Others"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" >
                                                            <asp:Label ID="Label27" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt" 
                                                                ForeColor="Maroon" Text="Guardian's Name:" Width="115px"></asp:Label>
                                                        </td>
                                                        <td align="left" >
                                                            <asp:TextBox ID="txtGrudName" runat="server" MaxLength="50"  onkeypress=" return valid(event,50)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" TabIndex="22" Width="150px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" >
                                                            <asp:Label ID="Label28" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt" 
                                                                ForeColor="Maroon" Text="RelationShip to Patient:" Width="170px"></asp:Label>
                                                        </td>
                                                        <td align="left" >
                                                            <asp:DropDownList ID="ddlRelation" runat="server" Font-Names="Verdana" 
                                                                Font-Size="8.5pt" Width="155px" TabIndex="23">
                                                                <asp:ListItem Text="" Value=""></asp:ListItem>
                                                                <asp:ListItem Text="Father" Value="Father"></asp:ListItem>
                                                                <asp:ListItem Text="Mother" Value="Mother"></asp:ListItem>
                                                                <asp:ListItem Text="Son" Value="Son"></asp:ListItem>
                                                                <asp:ListItem Text="Daughter" Value="Daughter"></asp:ListItem>
                                                                <asp:ListItem Text="Wife" Value="Wife"></asp:ListItem>
                                                                <asp:ListItem Text="Husband" Value="Husband"></asp:ListItem>
                                                                <asp:ListItem Text="Brother" Value="Brother"></asp:ListItem>
                                                                <asp:ListItem Text="Sister" Value="Sister"></asp:ListItem>
                                                                <asp:ListItem Text="Neighbours" Value="Neighbours"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" >
                                                            <asp:Label ID="Label29" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt" 
                                                                ForeColor="Maroon" Height="16px" Text="Blood Group:" Width="100px"></asp:Label>
                                                        </td>
                                                        <td align="left" >
                                                            <asp:DropDownList ID="ddlBloodGroup" runat="server" Font-Names="Verdana" 
                                                                Font-Size="8.5pt" Width="155px" TabIndex="24">
                                                                <asp:ListItem Text="" Value=""></asp:ListItem>
                                                                <asp:ListItem Text="A Positive" Value="A Positive"></asp:ListItem>
                                                                <asp:ListItem Text="A Negative" Value="A Negative"></asp:ListItem>
                                                                <asp:ListItem Text="B Positive" Value="B Positive"></asp:ListItem>
                                                                <asp:ListItem Text="B Negative" Value="B Negative"></asp:ListItem>
                                                                <asp:ListItem Text="0 Positive" Value="0 Positive"></asp:ListItem>
                                                                <asp:ListItem Text="0 Negative" Value="0 Negative"></asp:ListItem>
                                                                <asp:ListItem Text="AB Positive" Value="AB Positive"></asp:ListItem>
                                                                <asp:ListItem Text="AB Negative" Value="AB Negative"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                             </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                      </fieldset></asp:Panel>
                                    
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPageWorkAdd" runat="server" AccessKey="W">
                                     <asp:Panel ID="pnlWorkAdd" runat="server"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                    <fieldset>
                                    <legend ><b style="color:Maroon">Work Address</b> </legend>
                                    <table width="100%" cellpadding="1px" cellspacing="1px">
                                     
                                        <tr>
                                            <td align="left" colspan="4">
                                                 </td>
                                        </tr>
                                          
                                     <tr>
                                     <td style="width:100px"> </td>
                                    <td align="left">
                                     <asp:Label ID="Label30" runat="server" Font-Names="Verdana" Font-Size="8.5pt" Font-Bold="false"  
                                            ForeColor="Maroon" Text="Company Name:" Width="110" ></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtCompanyName" runat="server" MaxLength="150" 
                                            onkeypress=" return valid(event,150)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" 
                                            TabIndex="25" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                    <td align="left">
                                     <asp:Label ID="Label31" runat="server" Font-Names="Verdana" Font-Bold="false" Font-Size="8.5pt"  
                                            ForeColor="Maroon" Text="Place:" Width="60"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtPlace" runat="server" MaxLength="50" 
                                            onkeypress=" return valid(event,50)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" 
                                            TabIndex="26" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
      
                                    </td>
                                      <td style="width:100px"> </td>
                                      
                                    </tr>
                                     <tr>
                                       <td style="width:100px"> </td>
                                    <td align="left">
                                     <asp:Label ID="Label32" runat="server" Font-Bold="false"  Font-Names="Verdana" Font-Size="8.5pt"  
                                            ForeColor="Maroon" Text="Address1:" Width="60"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtAddress1" runat="server" MaxLength="100" 
                                            onkeypress=" return valid(event,100)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" 
                                            TabIndex="27" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                    <td align="left">
                                     <asp:Label ID="Label33" runat="server" Font-Names="Verdana" Font-Bold="false"  Font-Size="8.5pt"  
                                            ForeColor="Maroon" Text="PinCode:" Width="60"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtWorkPincode" runat="server" MaxLength="8" onkeypress="return MobileNo(event,10)"  style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="28" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
      
                                    </td>
                                      <td style="width:100px"> </td>
                                    </tr>
                                        <tr>
                                          <td style="width:100px"> </td>
                                            <td align="left">
                                                <asp:Label ID="Label34" runat="server" Font-Names="Verdana" Font-Bold="false"  Font-Size="8.5pt" 
                                                    ForeColor="Maroon" Text="Address2:" Width="60"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtAddress2" runat="server" MaxLength="100" 
                                                    onkeypress=" return valid(event,100)" 
                                                    style="color:Black;background-color:White;font-family:Verdana; font-size:8.5pt;" 
                                                    TabIndex="29" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="Label35" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt" 
                                                    ForeColor="Maroon" Text="Phone No:" Width="80"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtWorkPhoneNo" runat="server" MaxLength="15" onkeypress="return MobileNo(event,15)"  style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" TabIndex="30" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                            </td>
                                              <td style="width:100px"> </td>
                                        </tr>
                                        <tr>
                                            <td align="left" colspan="4">
                                                 </td>
                                        </tr>
                                    </table>
                                     </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPagePastHistroy" runat="server" AccessKey="H">
                                    <asp:Panel ID="pnlPastHi" runat="server" Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                   <fieldset>
                                   <legend ><b style="color:Maroon">Past Histroy</b></legend>
                                   <table width="100%" border="0" cellpadding="1px" cellspacing="1px">
                                      
                                        <tr>
                                            <td align="left">
                                                 </td>
                                        </tr>
                                    <tr>
                                    <td align="left">
                                        <asp:Panel ID="pnlFamily" runat="server"  Font-Names="Verdana" Font-Size="8.5pt"  ForeColor="Maroon" HorizontalAlign="Left">
                                       <fieldset>
                                       <legend ><b style="color:Maroon">Family History</b></legend>
                                       <table width="100%" cellpadding="1px" cellspacing="1px">
                                        <tr>
                                        <td colspan="4" Font-Bold="false" style="font-size: 8.5pt; font-family: Verdana;color:Maroon;">
                                     <%--   Family History--%>
                                        </td>
                                        </tr>
                                        <tr>
                                        <td style="width:150px"> </td>
                                        <td align="left">
                                        <asp:Label ID="Label36" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Diseases:" Width="97"></asp:Label>
                                        </td>
                                        <td align="left">
                                         <asp:TextBox ID="txtFamilyDes" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="31" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                        </td>
                                            <td style="width:150px"> </td>
                                        </tr>
                                        <tr>
                                            <td style="width:150px"> </td>
                                        <td align="left" ><asp:Label ID="Label37" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Surgery:" Width="97"></asp:Label></td>
                                        <td align="left" ><asp:TextBox ID="txtFamilySur" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="32" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox></td>
                                        </tr>
                                            <tr>
                                                <td colspan="2">
                                                     </td>
                                            </tr>
                                        </table>
                                        </asp:Panel>
                                      
                                      
                                    </td>
                                    </tr>
                                    <tr>
                                    <td align="center">
                                     <asp:Panel ID="PnlPersnal" runat="server" Font-Names="Verdana" Font-Size="8.5pt"  ForeColor="Maroon" HorizontalAlign="Left">
                                       <fieldset>
                                       <legend ><b style="color:Maroon">Personal History</b> </legend>
                                        <table width="100%" cellpadding="1px" cellspacing="1px">
                                        <tr>
                                        <td style="width:100px"> </td>
                                        <td colspan="2"  style="font-size: 8.5pt; font-family: Verdana;color:Maroon">
                                          
                                        </td>
                                          <td style="width:100px"> </td>
                                        </tr>
                                        <tr>
                                          <td style="width:150px"> </td>
                                        <td align="left" >
                                        <asp:Label ID="Label38" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Diseases:" Width="97"></asp:Label>
                                        </td>
                                        <td  align="left" >
                                         <asp:TextBox ID="txtperDises" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="33" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                        </td>
                                          <td style="width:150px"> </td>
                                        </tr>
                                        <tr>
                                          <td style="width:150px"> </td>
                                        <td  align="left" ><asp:Label ID="Label39" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Surgery:" Width="97"></asp:Label></td>
                                        <td  align="left" ><asp:TextBox ID="txtPerSur" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="34" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox></td>
                                          <td style="width:150px"> </td>
                                        </tr>
                                            <tr>
                                                <td colspan="2">
                                                     </td>
                                            </tr>
                                        </table>
                                        </fieldset></asp:Panel>
                                    </td>
                                    </tr>
                                    <tr>
                                            <td align="left">
                                                 </td>
                                        </tr>
                                    </table>
                                    </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPageAllergies" runat="server" AccessKey="G">
                                    <asp:Panel ID="pnlAllergies" runat="server" Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                    <fieldset>
                                    <legend><b style="color:Maroon">Allergies</b></legend>
                                    <table width="100%" cellpadding="1px" cellspacing="1px">
                                    <tr>
                                    <td style="width:150px"> </td>
                                    <td colspan="2" align="center" style="font-size: 10pt; font-family: Verdana;color:Maroon;text-decoration:underline;font-style:inherit">
                           <%--       Allergies--%>
                                  </td>
                                  <td style="width:150px"> </td>
                                    </tr>
                                    <tr>
                                    <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label40" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Drug Allergies:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtDrugAlle" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="35" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                    <td style="width:150px"> </td>
                                    </tr>
                                     <tr>
                                     <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label41" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Food Allergies:" Width="110"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtFoodAlle" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="36" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                    <td style="width:150px"> </td>
                                    </tr>
                                     <tr>
                                     <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label42" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Other Allergies:" Width="110"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtOtherAlle" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="37" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                    <td style="width:150px"> </td>
                                    </tr>
                                        <tr>
                                            <td align="left" colspan="4">
                                                 </td>
                                        </tr>
                                    </table>
                                    </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPageHabits" runat="server" AccessKey="B">
                                     <asp:Panel ID="pnlHabits" runat="server"  Font-Bold="True" Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                    <fieldset>
                                    <legend><b style="color:Maroon">Habits-Immunisation</b> </legend>
                                     <table width="100%" cellpadding="1px" cellspacing="1px">
                                    <tr>
                                    <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label43" Font-Bold="false" runat="server" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Habits:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtHabits" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="38" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                     <td style="width:150px"> </td>
                                    </tr>
                                     <tr>
                                      <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label44" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Preferences:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtPreference" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="39" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                     <td style="width:150px"> </td>
                                    </tr>
                                     <tr>
                                      <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label45" runat="server" Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Immuinization:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="txtImmuinization" runat="server" MaxLength="150"  onkeypress=" return valid(event,150)" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  TabIndex="40" Width="190px" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                     <td style="width:150px"> </td>
                                    </tr>
                                         <tr>
                                             <td align="left" colspan="4"
                                             </td>
                                         </tr>
                                    </table>
                                      </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPageDoctor" runat="server" AccessKey="O">
                                    <asp:Panel ID="pnlDoctor" runat="server"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                     <fieldset>
                                    <legend><b style="color:Maroon">Doctor Details</b></legend>
                                    <table width="100%" cellpadding="1px" cellspacing="1px">
                                        <tr>
                                            <td align="left" colspan="2">
                                                 </td>
                                        </tr>
                                    <tr>
                                    <td style="width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label46" runat="server"  Font-Bold="false" Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Ref.Doctor:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
                                     <telerik:RadComboBox ID="ddlRefDoctor" runat="server" AllowCustomText="True" 
                                        AutoPostBack="True" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                        DropDownCssClass="RadComboBox_Sunset" EmptyMessage="Select a Ref.DoctorName" 
                                        EnableEmbeddedSkins="False" EnableLoadOnDemand="True" EnableViewState="false" 
                                        EnableVirtualScrolling="True" Font-Names="verdana" Font-Size="8.5pt" 
                                        MarkFirstMatch="True" ShowMoreResultsBox="True" Skin="Sunset" 
                                        style="color:Black;background-color:White;font-family:Verdana;font-size:8pt;" 
                                        TabIndex="41">
                                    </telerik:RadComboBox><span style="font-size: 8pt; color: maroon">*</span>
      
                                    </td>
                                      <td style="width:150px"> </td>
                                      
                                   <%-- here radgrid table--%>
                                
                                    </tr>
                                      <tr>
                                        <td style="width:150px"> </td>
                                    <td align="left">
    <asp:Label ID="Label47" runat="server" Font-Bold="false " Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Address:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
    <asp:TextBox ID="txtDocAddress" runat="server" MaxLength="50"  onkeypress=" return valid(event,50)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            TabIndex="3" Width="100px" Enabled="false" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:150px"> </td>
                                    </tr>
                                    <tr>
                                      <td style="width:150px"> </td>
                                    <td align="left">
    <asp:Label ID="Label48" runat="server" Font-Bold="false " Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="City:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
    <asp:TextBox ID="txtDocCity" runat="server" MaxLength="50"  onkeypress=" return valid(event,50)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            TabIndex="3" Width="100px" Enabled="false" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:150px"> </td>
                                    </tr>
                                    <tr>
                                      <td style="width:150px"> </td>
                                    <td align="left">
    <asp:Label ID="Label49" runat="server" Font-Bold="false " Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="State:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
    <asp:TextBox ID="txtDocState" runat="server" MaxLength="50"  onkeypress=" return valid(event,50)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            TabIndex="3" Width="100px" Enabled="false" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:150px"> </td>
                                    </tr>
                                    <tr>
                                      <td style="width:150px"> </td>
                                    <td align="left">
    <asp:Label ID="Label50" runat="server" Font-Bold="false " Font-Names="Verdana" Font-Size="8.5pt"   ForeColor="Maroon" Text="Phone No:" Width="97"></asp:Label>
                                    </td>
                                    <td align="left">
    <asp:TextBox ID="txtDocPhoneNo" runat="server" MaxLength="50"  onkeypress=" return valid(event,50)" 
                                            style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;"  
                                            TabIndex="3" Width="100px" Enabled="false" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                    </td>
                                      <td style="width:150px"> </td>
                                    </tr>
                                        <tr>
                                            <td align="left" colspan="4">
                                                 </td>
                                        </tr>
                                        <tr>
                                        <td align="center" colspan="4">
                                    <table align="center" cellpadding="0" cellspacing="0">
                                    
                                   <tr>
                                   <td align="center" style="width:100%">
                                        <telerik:RadGrid ID="grvDoctor" runat="server" Width="600" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" AllowSorting="True" Skin="Outlook" ShowStatusBar="True">
                                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                            </HeaderContextMenu>
                                            <MasterTableView CommandItemDisplay="Top" DataKeyNames="doctorid">
                                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                                    <HeaderStyle Width="20px" />
                                                </RowIndicatorColumn>
                                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                                    <HeaderStyle Width="35px" />
                                                </ExpandCollapseColumn>
                                                <Columns>
                                                    <telerik:GridTemplateColumn FilterControlAltText="Filter SNO column" 
                                                        HeaderText="S.NO" UniqueName="SNO">
                                                        <EditItemTemplate>
                                                              <%# Container.DataSetIndex+1  %>
                                                        </EditItemTemplate>
                                                        <ItemTemplate>
                                                              <%# Container.DataSetIndex+1  %>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridBoundColumn DataField="doctorid" 
                                                        FilterControlAltText="Filter doctorid column" HeaderText="CODE" 
                                                        UniqueName="doctorid">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="doctorname" 
                                                        FilterControlAltText="Filter doctorname column" HeaderText="CONSULTANT NAME" 
                                                        UniqueName="doctorname">
                                                    </telerik:GridBoundColumn>
                                                     <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  ConfirmText="Delete this Doctor ?" Text="Delete"  UniqueName="DeleteColumn1">
                                                    <HeaderStyle Width="20px" />
                                                    <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
                                                </telerik:GridButtonColumn>
      
                                                </Columns>
                                                <EditFormSettings EditFormType="Template">
                                                <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
                         <FormTemplate>
                         <table id="tblDesi" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse; background: white;">
                         <tr class="EditFormHeader">
                            <td colspan="2" style="font-size: small; font-family: Verdana;color:Maroon" >
                                   
                            </td>
                        </tr>
                        <tr>
                        <td align="center">
                        <table id="Table3" cellspacing="1" cellpadding="1"  border="0">
                         <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="label7" Text="ConsultantDoctor Name:" runat="server" Font-Names="verdana" Font-Size="8.5pt" ForeColor="Maroon" Width="150"></asp:Label>
                                </td>
                                <td align="left" >
                                      <asp:DropDownList ID="ddlDoc" AppendDataBoundItems="true" runat="server" Width="150px" TabIndex="1" Font-Names="verdana" Font-Size="8.5pt" DataTextField='<%# Bind("doctorname") %>' DataValueField='<%# Bind("doctorname") %>' AutoPostBack="True"  OnSelectedIndexChanged="ddlDoc_SelectedIndexChanged"></asp:DropDownList><span style="font-size: 8pt; color: maroon">*</span>
                                </td>
                                <td>
                              
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="label4" Text="Code:" runat="server" Font-Names="verdana" Font-Size="8.5pt" ForeColor="Maroon" Width="150"></asp:Label>
                                </td>
                                <td align="left" >
                                    <asp:TextBox ID="txtCODE" runat="server" Width="145" Text='<%# Bind("doctorid") %>' TabIndex="2" Font-Names="verdana" Font-Size="8.5pt"  MaxLength="20"  Enabled="false" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px">
                                    </asp:TextBox>
                                </td>
                                <td>
                                     
                                </td>
                            </tr>
                               <tr>
                             <td colspan="2" align="center" style="padding-left:65px">
                                <asp:ImageButton ID="btnUpdate1" runat="server"  Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update" ) %>' OnClientClick="return ValidName()" ImageUrl="~/Images/save.jpg" ToolTip="Save" runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' />    
                                 <asp:ImageButton ID="btnCancel1" runat="server" CausesValidation="false" CommandName="Cancel" ImageUrl="~/Images/cancelbtn.jpg" ToolTip="Cancel"/>
                                  
                             </td>
                                
                              </table>
                            </td>
                              
                            </tr>
                           <%-- <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="btnUpdate1" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' Style="color: White; background-color: SteelBlue; font-family: Verdana; font-size: 8pt; width: 87px;" runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' OnClientClick="return ValidName()" CausesValidation="true" AccessKey="I" ToolTip="Alt+i" TabIndex="7">
                                    </asp:Button
       <asp:Button ID="btnCancel1" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" Style="color: White; background-color: SteelBlue; font-family: Verdana; font-size: 8pt; width: 87px;" AccessKey="C" ToolTip="Alt+c" TabIndex="8"></asp:Button>
                                    </td>
                                </tr>--%>
                                  
                            
                             </tr>
                              <tr>
                             <td> </td>
                             </tr>
                                
                         </table>
                           
                         </FormTemplate>
                                                  
                                                </EditFormSettings>
                                            </MasterTableView>
                                            <FilterMenu EnableImageSprites="False">
                                            </FilterMenu>
                                        </telerik:RadGrid>
                                          
                                        </td></tr>
                                          
                                         </table>
      
                                          
                                        </td>
                                        </tr>
                                         <tr>
                                         <td> </td>
                                         </tr>
                                    </table>
                                    </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView ID="radPageRoomAllotment" runat="server"  AccessKey="L">
                                     <asp:Panel ID="pnlRoomAll" runat="server"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" HorizontalAlign="Left">
                                    <fieldset >
                                    <legend ><b style="color:Maroon">Room Allotment</b></legend>
                                    <table width="100%" cellpadding="1px" cellspacing="1px">
                                      <tr>
                                            <td align="left" colspan="6">
                                                 </td>
                                        </tr>
                                    <tr>
                                    <td style="Width:150px"> </td>
                                    <td align="left">
                                    <asp:Label ID="Label51" runat="server" Text="Category:" Width="60"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                      
                                    </td>
                                    <td align="left" width="">
                                        <asp:DropDownList ID="ddlCategroy" runat="server" Font-Names="Verdana" 
                                            Font-Size="8.5pt" Width="140px" AutoPostBack="True" TabIndex="42">
                                        </asp:DropDownList><span style="font-size: 8pt; color: maroon">*</span>
                                    </td>
                                    <td align="right">
                                    <asp:Label ID="Label52" runat="server" Text="Dept:" Width="60"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon"></asp:Label
                                    </td>
                                    <td align="left">
                                    <asp:DropDownList ID="ddlDept" runat="server" Font-Names="Verdana" 
                                            Font-Size="8.5pt" Width="140px" AutoPostBack="True" TabIndex="43">
                                        </asp:DropDownList><span style="font-size: 8pt; color: maroon">*</span>
                                    </td>
                                      <td style="Width:150px"> </td>
                                    </tr>
                                        <tr>
                                            <td align="left" colspan="6">
                                                 </td>
                                        </tr>
                                    <tr>
                                    <td align="left" colspan="6">
                                      
                                    <asp:Panel ID="Panel1" runat="server"  Font-Names="Verdana" Font-Size="8.5pt"  ForeColor="Maroon" HorizontalAlign="Left">
                                   <fieldset >
                                   <legend ><b style="color:Maroon">Rooms Chart</b> </legend>
                                   <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                    <td align="left" style="font-size: 8.5pt; font-weight:bold ; font-family: Verdana;color:Maroon">
                                     
                                    </td>
                                    </tr>
                                    <tr>
    <td align="left" >
        <telerik:RadGrid ID="grvRoomCharges" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Outlook"  ShowStatusBar="True">
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
            <MasterTableView>
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter S.NO column" 
                        HeaderText="S.NO" UniqueName="S.NO">
                        <EditItemTemplate>
                            <%# Container.DataSetIndex+1  %>
                        </EditItemTemplate>
                        <ItemTemplate>
                             <%# Container.DataSetIndex+1  %>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="RCODE" 
                        FilterControlAltText="Filter RCODE column" HeaderText="ROOM NO" 
                        UniqueName="RCODE">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BEDCODE" 
                        FilterControlAltText="Filter BEDCODE column" HeaderText="BED NO" 
                        UniqueName="BEDCODE">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LCODE" 
                        FilterControlAltText="Filter LCODE column" HeaderText="LOCATION" 
                        UniqueName="LCODE">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RATE" 
                        FilterControlAltText="Filter RATE column" HeaderText="R.CHARGE" 
                        UniqueName="RATE">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="NCHARGES" 
                        FilterControlAltText="Filter NCHARGES column" HeaderText="N.CHARGES" 
                        UniqueName="NCHARGES">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter ALLOT column" 
                        HeaderText="ALLOT" UniqueName="ALLOT">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkCheck" runat="server" EnableViewState="true"  onclick ="CheckOne(this)" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
    </td>
                                    </tr>
                                    </table>
                                   </fieldset></asp:Panel>
                                      
                                    </td>
                                    </tr>
                                    <tr>
                                    <td align="left" colspan="4">
                                         </td>
                                    </tr>
                                      
                                        <tr>
                                            <td align="right">
                                                 </td>
                                            <td align="left">
                                                <asp:Label ID="Label53" runat="server" Font-Names="Verdana" Font-Size="8.5pt" 
                                                    ForeColor="Maroon" Text="Addvance Paid:" Width="100"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtAdvPaid" runat="server" MaxLength="8" 
                                                   onkeypress=" return Amount(event,10)"
                                                    style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" 
                                                    TabIndex="44" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox>
                                                <span style="font-size: 8pt; color: maroon">*</span>
                                            </td>
                                            <td align="left">
                                                 </td>
                                        </tr>
                                        <tr>
                                            <td align="left" colspan="4">
                                                 </td>
                                        </tr>
                                      
                                    </table>
                                    </fieldset></asp:Panel>
                                    </telerik:RadPageView>
                                      
                                    </telerik:RadMultiPage>
      
     <asp:Button ID="BtnSave" runat="server"  Text="Save"  Width="87px" AccessKey="S" 
                                         ToolTip="Alt+s" 
                                         style="color:White;background-color:SteelBlue;font-family:Verdana;font-size:8.5pt; height: 21px;" 
                                         TabIndex="15" OnClientClick="return selectTab();"/>

    Hi sir,
    I  placed one tabcontrol inside the page but error comming for selectTab validation in javascript error coming this tab control is not working  in IE8 browser .
    please help me .how it will work ?
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 24 Apr 2012 Link to this post

    Hello Rathan,

    When you define event handler functions as it's the case with the button's OnClientClick you should pass only the name of the function as shown below:
    <asp:Button ID="BtnSave" runat="server" Text="Save" Width="87px" AccessKey="S" ToolTip="Alt+s"
               Style="color: White; background-color: SteelBlue; font-family: Verdana; font-size: 8.5pt;
               height: 21px;" TabIndex="15" OnClientClick="selectTab" />


    Greetings,
    Dimitar Terziev
    the Telerik team
    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 their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top