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

sub menu item error

1 Answer 38 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rathan
Top achievements
Rank 1
Rathan asked on 29 Feb 2012, 04:47 AM
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
  
  
<html>
<head runat="server">
<link rel="SHORTCUT icoN" href="../AnchorHMO.ico" /> 
<title>::</title>
   
<link id="Link2" rel="stylesheet" type="text/css" href="~/Skins/Menu.css" runat="server" />
      
  <link id="Link1" rel="stylesheet" type="text/css" href="~/Skins/Gray/Menu.Gray.css" runat="server" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<style type="text/css">
body{font-family:Verdana;}
.a{color:white;text-decoration:none;}
.ab{color:#4682B4;text-decoration:none;}
a:hover{color:#FFA07A;}
td.menu{background:#4682B4}
table.menub
{
font-size:98%;
Position:absolute;
top:22px;
visibility:hidden;
}
</style>
  
<style type="text/css">
 .CustomItem
   {
        
     background:#FFA07A;
   
     text-decoration:none;
   
   .CustomItem:hover
   {
        
      background:#FFA07A;
      text-decoration:none;
      
   }
</style>
<style type="text/css">
    .WrappingItem1
    {
     background-color:#ffffff;
     color:#ffffff  !important;
     width:1px;
     height:1px;
     }
.WrappingItem
        {
            background-color:#4682B4;
            color: #ffffff;
            text-align:left;
            /*margin:0px;*/
            padding-right :100px;
            padding-left:200px;
              /* white-space: normal;*/
       }
       
        .WrappingItem:hover
        {
        border:#811D06;
        color:#000000 !important;
        background-color:#EFCDA9 !important;
        }
        .WrappingItem.horizontal .separator
        {
       width:1px;
        height:1px;
        }
       .RedItem
        {
           background-color: #FF9900 !important;
            color: #ffffff;
        }
         .RedItem:hover
        {
            background-color: #FF9900 !important;
            color: #ffffff;
        }
</style>
<script type="text/javascript" language="javascript">
  
    var oldgridSelectedColor;
  
    function setMouseOverColor(element) {
        //oldgridSelectedColor = eventArgs.style.backgroundColor;
        oldgridSelectedColor = document.getElementById("radMenuHMO").style.backgroundColor;
        document.getElementById("radMenuHMO").style.backgroundColor = '#FFA07A';
        document.getElementById("radMenuHMO").style.cursor = 'hand';
        document.getElementById("radMenuHMO").style.textDecoration = 'underline';
    }
  
    function setMouseOutColor(element) {
        document.getElementById("radMenuHMO").style.backgroundColor = oldgridSelectedColor;
        document.getElementById("radMenuHMO").style.textDecoration = 'none';
    }
  
  
  
  
</script>
<script type="text/javascript">
  
    function ShowTime() {
        var dt = new Date();
        document.getElementById("<%= txtTi.ClientID %>").value = dt.toLocaleTimeString();
        window.setTimeout("ShowTime()", 1000);
  
    }   
  
</script>
  
<script type="text/javascript">
    window.setTimeout("ShowTime()", 1000);
     
</script>
  
  
<script type="text/javascript">
    function showmenu(elmnt) {
        try {
            document.getElementById(elmnt).style.visibility = "visible";
            document.getElementById(elmnt).style.top = document.getElementById(elmnt).style.top + 28;
        }
        catch (e) { }
    }
  
    function hidemenu(elmnt) {
        document.getElementById("radMenuHMO").style.visibility = "hidden";
    }
  
    function ForwardPage() {
        window.history.forward();
    }
</script>
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" onload="ForwardPage()">
  
<table width="100%" style="font-size:66%;" cellspacing="0" cellpadding="0">
       <tr>
       <td align="center" colspan="13">
           <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
           </telerik:RadScriptManager>      
         <telerik:RadMenu ID="radMenuHMO" runat="server" Width="100%" Skin="Gray" 
               EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False">
          <Items>
                <telerik:RadMenuItem  Text="Administration" >
                    <Items>
                        <telerik:RadMenuItem Text="Master Tables">
                         
                            <Items>
                                <telerik:RadMenuItem runat="server" Text="Speciality Master">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Doctor Master">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Category Master">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Location Master">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Department Master">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" NavigateUrl="~/CMS/RoomBedMaster.aspx" 
                                    Text="Room/Bed Master">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Designation Master" 
                                    NavigateUrl="~/CMS/DesignaionMaster.aspx">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Hospital Services">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem  IsSeparator="True" />
                                <telerik:RadMenuItem runat="server" Text="Surgery Master">
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                         
                        <telerik:RadMenuItem  IsSeparator="True" />
                        <telerik:RadMenuItem Text="Out-Patient" />
                      
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="In-Patient" />
                       
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Dischargaes" />
                         
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Certificates" />
                   
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem  Text="Reception">
                    <Items>
                        <telerik:RadMenuItem Text="ICD Codes" NavigateUrl="~/CMS/ICDCodesMaster.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Dental Codes" NavigateUrl="~/CMS/DentalCodesMaster.aspx" />
                     
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Services Master" NavigateUrl="~/CMS/DiagnosisMaster.aspx" />
               
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Procedure Master" NavigateUrl="~/CMS/ProcedureMaster.aspx" />
                   
                        <telerik:RadMenuItem IsSeparator="True" />
                       <telerik:RadMenuItem Text="Medicine Codes" NavigateUrl="~/CMS/MedicineMaster.aspx" />
                        
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="CPT Codes" NavigateUrl="~/CMS/CPTMapping.aspx"/>
                      
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Category Master" NavigateUrl="~/CMS/CategoryMaster.aspx" />
                      
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="ICPC Master"  NavigateUrl="~/CMS/ICPCMaster.aspx" />
                        
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="ICPC vs ICD Mapping" NavigateUrl="~/CMS/ICDvsICPMapping.aspx" />
                      
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Territory"  NavigateUrl="~/CMS/TerritoryMaster.aspx" />
                   
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Country" NavigateUrl="~/CMS/CountryMaster.aspx" />
                         
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Nationality" NavigateUrl="~/CMS/NationalityMaster.aspx"/>
                         
                        <telerik:RadMenuItem IsSeparator="True" />                     
                        <telerik:RadMenuItem Text="State"  NavigateUrl="~/CMS/StateMaster.aspx" />
                       
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="City"  NavigateUrl="~/CMS/CityMaster.aspx" />
                       
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Town" NavigateUrl="~/CMS/TownMaster.aspx" />
                        
                         <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem NavigateUrl="~/CMS/LGAMaster.aspx" Text="LGA Matser" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem   Text="Industry" NavigateUrl="~/CMS/IndustryMaster.aspx" />
                         
                        <telerik:RadMenuItem IsSeparator="True" />
                           <telerik:RadMenuItem Text="Relation"  NavigateUrl="~/CMS/RelationMaster.aspx" />
                         
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem  Text="Investigations">
                    <Items>
                        <telerik:RadMenuItem  Text="Provider Master" NavigateUrl="~/CMS/HospitalMaster.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Reim. Provider Master" NavigateUrl="~/CMS/ReimbursementHospitalsMaster.aspx" />
                         
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Provider Contract" NavigateUrl="~/CMS/HospitalContractsMaster.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem NavigateUrl="~/CMS/AveragePricing.aspx" Text="Provider Cost Comparison" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem  NavigateUrl="~/CMS/ProviderUpload.aspx" Text="Provider Upload" />
                          
                    </Items>
                </telerik:RadMenuItem>
  
                <telerik:RadMenuItem  Text="Day Consolidated Report" >
                      <Items>
                        <telerik:RadMenuItem Text="Group Master" NavigateUrl="~/CMS/GroupDetailsMaster.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Client Master" NavigateUrl="~/CMS/ClientDetailsMaster.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Policy Master" NavigateUrl="~/CMS/PolicyDetailsMaster.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem  Text="Plan Master Details" NavigateUrl="~/CMS/ClassDetailsMaster.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Member Enrolment Form" NavigateUrl="~/CMS/MemberMaster.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Member Bulk upload"  NavigateUrl="~/CMS/MembersUpload.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Member Bulk Deletion"  NavigateUrl="../CMS/MemberBulkDeletion.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Member Bulk Migration"  NavigateUrl="../CMS/MemberBulkMigration.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Debit Credit Note Print" NavigateUrl="~/CMS/DebitCreditNotePrint.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Client Member Addition Decision" NavigateUrl="~/CMS/ClientMemberRequest.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem  Text="Client Member Deletion Decision" NavigateUrl="~/CMS/ClientMemberRequestDeletion.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Repots">
                            <Items>
                                <telerik:RadMenuItem NavigateUrl="~/Reports/MemberReport.aspx" 
                                    Text="Policy Member Details Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/MemberInsuredlist.aspx" 
                                    Text="Members Insured List Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/MemberAdditionInsurReport.aspx" 
                                    Text="Member Additions Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/MemberAdditionComm.aspx" 
                                    Text="Member Additions Comm. Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/MemberDeletionInsurance.aspx" 
                                    Text="Member Deletions Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem NavigateUrl="~/Reports/MemberMigration.aspx" 
                                    Text="Member Migration Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem NavigateUrl="~/Reports/MemberMigrationComm.aspx" 
                                    Text="Member Migration Comm. Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/MemberAdditionReport.aspx" 
                                    Text="Member Additions Client Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/MemberDeletionReport.aspx" 
                                    Text="Member Deletions Client Report"/>
                                  
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem  NavigateUrl="~/Reports/CardPrintReport.aspx" 
                                    Text="Member's Card Print Report Report"/>
                                  
                            </Items>
                              
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem   Text="Stores">
                    <Items>
                        <telerik:RadMenuItem Text="Approval Request" NavigateUrl="~/CMS/ApprovalRequestMasterAHN.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Approval Decision" NavigateUrl="~/CMS/ApprovalRequestList.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Approval Decision Print" NavigateUrl="~/Reports/ApprovalRequestPrint.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Approval Request Status" NavigateUrl="~/CMS/ApprovalRequestStatusCC.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Rejection Codes" NavigateUrl="~/CMS/RejectionCodes.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Member System Info" NavigateUrl="~/CMS/MemberSystemInfoApproval.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Approval Status Report" NavigateUrl="~/Reports/ApprovalRequestStatus.aspx"/>
                          
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem  Text="Pharmacy" >
                    <Items>                    <telerik:RadMenuItem Text="Member System Info" NavigateUrl="~/CMS/MemberSystemInfoApproval.aspx"/>
                          
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem  Text="Utilities">
                    <Items>
                        <telerik:RadMenuItem Text="Claim Batch" NavigateUrl="~/CMS/ClaimsBatch.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Claim Batch Report" NavigateUrl="~/Reports/ClaimsBatchReport.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Claim Entry" NavigateUrl="~/CMS/ClaimsEntry.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Claims Upload" NavigateUrl="~/CMS/ClaimsUpload.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="List of Claims Review" NavigateUrl="~/CMS/Calimreviewlist.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Claim Settlement Advice Report" NavigateUrl="~/Reports/rptClaimSettlement.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Claims Payment Report" NavigateUrl="~/Reports/MedicalClaims.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Explanation of Benefit Report" NavigateUrl="~/Reports/EOBReport.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Member Claim's Verify Report" NavigateUrl="~/Reports/MemberClaimsVerify.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Claims Credit Note" NavigateUrl="~/CMS/ClaimsCreditNote.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="COC Report" NavigateUrl="~/CMS/COCReport.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Capitation Credit notes" NavigateUrl="~/CMS/CapitationCreditnote.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Text="Previous Capitation Credit notes" NavigateUrl="~/CMS/CapitationCreditnotePrint.aspx" />
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                         <telerik:RadMenuItem Text="Policy Claims Details Report" NavigateUrl="~/Reports/PolicyClaimsDetailsReport.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                         <telerik:RadMenuItem Text="Member Claims Payment Report" NavigateUrl="~/Reports/MemberClaimsPaymentReport.aspx"/>
                          
                        <telerik:RadMenuItem IsSeparator="True" />
                         <telerik:RadMenuItem Text="Provider Duration Report" NavigateUrl="~/Reports/HospitalDurationReport.aspx"/>
                          
                    </Items>
                </telerik:RadMenuItem>
            </Items>
          </telerik:RadMenu>
      </td>
    </tr>   
    <tr bgcolor="White" align="center">
    <td bgcolor="white" valign="top" colspan="13"> <img  Width="200px" Height="75px" BorderStyle="Solid" BorderWidth="1px" BorderColor="White" src="../Images/AnchorHMO.png" /></td>
    </tr>     
    <tr bgcolor="White" valign="top">
        <td align="left" style="color:#4682B4"  colspan="8" >Welcome  </td>        
        <td align="right"  style="color:#4682B4"  colspan="5"><b>
        <% =date.Now.ToLongDateString %>  <asp:TextBox ID="txtTi" Enabled="false" ReadOnly="true"   runat="server" BorderStyle="None" Width="78px" ForeColor="SteelBlue" Font-Bold="True" Font-Names="Verdana" Font-Size="8.5pt" Height="15px"></asp:TextBox></b>  |     <a class="ab" href="../Forms/WelcomeWCMS.aspx"><b>Logout</b></a></td>
   </tr>   
    <tr style ="background-color: steelblue" align="center">
    <td style="background-color: steelblue; height:9px"  colspan="13">
     
       </td>
        
    </Tr>         
    <tr style ="background-color: steelblue;" align="center">
        <td bgcolor="white" colspan="13"></td>
    </Tr>         
        <tr align="center">
        <td bgcolor="white" colspan="13"  align="right" style="color:Maroon;width: 954px" valign="top">
              
         </td>        
    </Tr
</table>
  
</body>
</html>
hi sir,
i am desiging Menu inthis page but click in submenu click on error is come. i am attaching error page .
plz help me that error soluation.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Mar 2012, 02:56 PM
Hello Rathan,

Please, see this troubleshooting help topic -> section on Error message “The Controls collection cannot be modified because the control contains code blocks".

Basically, you need to wrap your javascript code within RadCodeBlock.


Regards, Peter
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.
Tags
Menu
Asked by
Rathan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or