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

Menu Items do not exist on GoDaddy in Page_Load

2 Answers 53 Views
Menu
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 2
George asked on 30 Jun 2015, 01:20 AM

I have nested RadMenuItems hard coded in an aspx file with 3 different but similar menus.  Under a certain condition I need to remove the second menu item in each menu which works fine in the Visual Studio 2013 test environment. When I deploy to GoDaddy, remove on the third menu does not work in Page_Load. 

GoDaddy the items in the third menu in the aspx file are not fully instantiated in Page_Load. 

I was forced to code to check if the hard coded menu items exist and abandon the remove to avoid run-time errors.

if (JoinButtonMenu.Items.Count > 2 && JoinButtonMenu.Items.Count > 2)  {     
     JoinButtonMenu.Items[1].Items[1].Remove();
}

<telerik:RadContextMenu ID="JoinButtonMenu" CssClass="RadContextMenu3" runat="server">
    <ExpandAnimation Type="None" Duration="0" />
    <CollapseAnimation Type="None" Duration="0" />
    <Items>
        <telerik:RadMenuItem Text="Edit"  NavigateUrl="javascript:MenuItemSelected('Edit');" PostBack="False" ></telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Insert" PostBack="False" >
            <Items>
                <telerik:RadMenuItem Text="Insert Display Text..."  NavigateUrl="javascript:MenuItemSelected('AddText');" PostBack="False" ></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Insert Checkboxes..."  NavigateUrl="javascript:MenuItemSelected('AddChecks');" PostBack="False" ></telerik:RadMenuItem>

....

The menu items missing in the Page_Load code all show up fine in the page including the one I need to get rid of.

Any ideas how to work around this problem and why it is happening?

2 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 02 Jul 2015, 02:19 PM
Hi George,

In order to troubleshoot the experienced problem, could you please open a support ticket and provide a sample page with the exact implementation that you are using.

Regards,
Dimitar Terziev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
George
Top achievements
Rank 2
answered on 03 Jul 2015, 04:30 AM

Support only seems to help if you supply a project, in this problem the project will work just fine since the problem is why it will not work on GoDaddy when it works just fine in development.  I was hoping some GoDaddy user might have an idea what the heck is going on. 

I suppose I can try support.

Tags
Menu
Asked by
George
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
George
Top achievements
Rank 2
Share this question
or