RadContextMenu OnItemClicked event only works once

1 posts, 0 answers
  1. Brad
    Brad avatar
    1 posts
    Member since:
    Jun 2014

    Posted 13 Apr 2015 Link to this post

    So I have a RadContextMenu like below:

     

    <telerik:RadContextMenu ID="rcMenuLoggedInUser" runat="server" EnableRoundedCorners="true" EnableShadows="true" OnItemClick="rcMenuLoggedInUser_ItemClick">
                       <Items>
                       <telerik:RadMenuItem Text="Settings" ImageUrl="~/Images/Settings_Blue.png" >
                                        <Items>
                                            <telerik:RadMenuItem Text="Client">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Add New Client" Value="Add New Client"></telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Client List" Value="Client List"></telerik:RadMenuItem>
                                                </Items>
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="User">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Add New User" Value="Add New User"></telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="User List" Value="User List"></telerik:RadMenuItem>
                                                </Items>
                                            </telerik:RadMenuItem>
                                        </Items>
                       </telerik:RadMenuItem>
                       <telerik:RadMenuItem Text="Profile" Value="Profile" ImageUrl="~/Images/Profile_Blue.png" />
                       <telerik:RadMenuItem Text="Logout" Value="Logout" ImageUrl="~/Images/Logout_Blue.png" />
                       </Items>
                       </telerik:RadContextMenu>

     

    In the rcMenuLoggedInUser_ItemClick event in C#, I have case statements to detect which item was clicked and act upon that one.  This works fine the first time, but after that the OnItemClick event never fires again.  Now I should say, that this does work correctly on my local computer.  However, when I publish to my server where the website is housed, that is where it does not work. Once I publish and type in my URL to my website on my test server, the OnItemClick event only seems to fire one time.  If I try to click on any item after that first time, nothing happens.

     

    Any idea as to what I am doing wrong?

     

    Thanks,

     

    Brad

Back to Top