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

RadContextMenu OnItemClicked event only works once

0 Answers 66 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 13 Apr 2015, 01:37 PM

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

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Brad
Top achievements
Rank 1
Share this question
or