Page loading problam

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

    Posted 16 Feb 2012 Link to this post

    <script type="text/javascript" language="javascript">
      
            function onTabSelecting(sender, args) {
                if (args.get_tab().get_pageViewID()) {
                    args.get_tab().set_postBack(false);
                }
                //logEvent("OnClientTabSelecting: " + args.get_tab().get_text());
                var str = args.get_tab().get_text();
                if (str == "Premiums & Out Territory" || str == "Benefits" || str == "Deductibles") {
                    var combo = $find("<%= ddlPolicyNo.ClientID %>");
      
                    var ddlnDate = document.getElementById("<%= ddlFromDate.ClientID %>");
                    var palnName = document.getElementById("<%= txtClassName.ClientID %>");
                    var comboItem = combo.get_text();
      
      
      
                    if (comboItem == "Select a PolicyNo") {
                        alert("Select PolicyNo...");
                        var comboBox = $find('ddlPolicyNo');
                        var input = comboBox.get_inputDomElement();
                        input.focus();
                        str.set_selectedIndex(0);
      
      
      
                        // document.getElementById("<%= radPlanMasterTab.ClientID%>").value = sender.SelectedTab.Text;
      
                        return false;
                    }
                    if (ddlnDate.value == '') {
                        alert("Select Inception Date...");
                        ddlnDate.focus();
                        str.set_selectedIndex(0);
                    }
                    if (palnName.value == '') {
                        alert("Enter Plan Name...");
                        palnName.focus();
                        str.set_selectedIndex(0);
                    }
                }
                if (str == "General & Eligibility" || str == "Benefits" || str == "Deductibles") {
                    var txtGridCnt = document.getElementById('txtGridCnt')
                    //alert(txtGridCnt.value);
                    var ddlRelation = document.getElementById('ddlRelation');
      
                    if (ddlRelation.value == '' && (txtGridCnt.value == 0 || txtGridCnt.value == '')) {
                        alert("Select the PremiumPlan");
                        document.getElementById('ddlRelation').focus();
                        str.set_selectedIndex(1);
                        return false;
                    }
                    var txtBasic = document.getElementById('txtBasic');
                    var txtPolicyplantype = document.getElementById('txtPolicyplantype');
      
                    if ((txtBasic.value == '' && ddlRelation.text != '') && (txtGridCnt.value == 0 || txtGridCnt.value == '')) {
                        alert("Enter the Basic ")
                        document.getElementById('txtBasic').value = "";
                        document.getElementById('txtBasic').focus();
                        str.set_selectedIndex(1);
                        return false;
                    }
      
                    if ((txtGridCnt.value == 0 || txtGridCnt.value == '')) {
                        alert("Click on Add To Grid")
                        str.set_selectedIndex(1);
                        return false;
                    }
                    if (document.getElementById('chkOTAllowed').checked) {
                        var txtOTRCRepPer = document.getElementById('txtOTRCRepPer');
                        if (txtOTRCRepPer.value == '') {
                            alert("Enter the Out of Territory Reimbursement Claim Reporting Period")
                            document.getElementById('txtOTRCRepPer').focus();
                            str.set_selectedIndex(1);
                            return false;
                        }
      
                        var txtOTPerClaim = document.getElementById('txtOTPerClaim');
                        if (txtOTPerClaim.value == '') {
                            alert("Enter the Percentage covered per Claim Out of Territory")
                            document.getElementById('txtOTPerClaim').focus();
                            str.set_selectedIndex(1);
                            return false;
                        }
      
                        var txtOTRoomChrg = document.getElementById('txtOTRoomChrg');
                        if (txtOTRoomChrg.value == '') {
                            alert("Enter the Room Charges payable per Night in Out Territory")
                            document.getElementById('txtOTRoomChrg').focus();
                            str.set_selectedIndex(1);
                            return false;
                        }
      
                        var txtOTMaxEmpDay = document.getElementById('txtOTMaxEmpDay');
                        if (txtOTMaxEmpDay.value == '') {
                            alert("Enter the Out Territory Max Member Days Covered")
                            document.getElementById('txtOTMaxEmpDay').focus();
                            str.set_selectedIndex(1);
                            return false;
                        }
      
                        var txtOTMaxDDay = document.getElementById('txtOTMaxDDay');
                        if (txtOTMaxDDay.value == '') {
                            alert("Enter the Out Territory Max Dependants Days Covered")
                            document.getElementById('txtOTMaxDDay').focus();
                            str.set_selectedIndex(1);
                            return false;
                        }
                    }
      
                }
      
            }
      
          
        </script>
    <telerik:RadTabStrip ID="radPlanMasterTab" runat="server" 
                              MultiPageID="radPageView" Align="Justify" SelectedIndex="1" 
                              ReorderTabsOnSelect="True"  Font-Names="Verdana" Font-Size="8.5pt" 
                              OnClientTabSelecting="onTabSelecting" Skin="Simple" Width="90%" >
       
            <Tabs>
            <telerik:RadTab Text="General & Eligibility" CssClass="SelectedTab"  HoveredCssClass="a" SelectedCssClass="b" AccessKey="G" ToolTip="Alt+g" ></telerik:RadTab>
            <telerik:RadTab Text="Premiums & Out Territory" CssClass="SelectedTab"  HoveredCssClass="a" SelectedCssClass="b" AccessKey="T" ToolTip="Alt+t" 
                    Selected="True"></telerik:RadTab>
            <telerik:RadTab Text="Benefits" CssClass="SelectedTab" HoveredCssClass="a" SelectedCssClass="b" AccessKey="B" ToolTip="Alt+b"></telerik:RadTab>
            <telerik:RadTab Text="Deductibles" CssClass="SelectedTab" HoveredCssClass="a" SelectedCssClass="b" AccessKey="U" ToolTip="Alt+u"></telerik:RadTab>
            </Tabs>
            </telerik:RadTabStrip>
    hi,
    i am sending telerik tabcontrol page loading problam. plz help me
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 21 Feb 2012 Link to this post

    Hello Rathan,

    Can you elaborate on your issue since I am not able to determine the problem that you encounter only by looking at the images?

    Regards,
    Kate
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top