How to make ItemClick event work on RadMenu

Posted on 2011-04-21
Last Modified: 2012-06-21
I need a server side function when I click LogOff RadMenuItem. I used ItemClick event on RadMenu.
<div style="height: 20px; width: 100%;">            
       <telerik:RadMenu ID="RadMenu1" runat="server" Style="float: none; width:100%; "
                Skin="Black" ItemClick="LogoffClick">                
                    <telerik:RadMenuItem Text="HOME" NavigateUrl="Home.aspx">
                    <telerik:RadMenuItem Text="QUERY" NavigateUrl="Query.aspx">
                    <telerik:RadMenuItem Text="LISTING" NavigateUrl="View.aspx">
                    <telerik:RadMenuItem Text="Record" NavigateUrl="Record.aspx">
                     <telerik:RadMenuItem Text="CREATE" NavigateUrl="create.aspx"></telerik:RadMenuItem>
                     <telerik:RadMenuItem Text="SEARCH" NavigateUrl="Search.aspx"></telerik:RadMenuItem>                    
                    <telerik:RadMenuItem Text="REPORT" NavigateUrl="Report.aspx">
                     <telerik:RadMenuItem Text="HISTORY"></telerik:RadMenuItem>

                    <telerik:RadMenuItem Text="LOGOFF" ></telerik:RadMenuItem>                

C# side -  
protected void LogoffClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
       Telerik.Web.UI.RadMenuItem ItemClicked = e.Item;
       Response.Write("Server event raised -- you clicked: " + ItemClicked.Text);

I can complipe and run the application, but cannot debug into the above LogoffClick function. When I click the LOGOFF menu, nothing happens. I need to do sonething inside the function. Please help.
I take reference from
Question by:minglelinch
    LVL 30

    Accepted Solution

    Your declaration looks incorrect there ItemClick="LogoffClick" should be OnItemClick="LogoffClick"
    <telerik:RadMenu ID="RadMenu1" runat="server" Style="float: none; width:100%;" Skin="Black" OnItemClick="LogoffClick">  

    Open in new window

    LVL 1

    Author Comment

    Hm ... my careless? It has taken me two days.
    Thank a lot,  MlandaT.
    LVL 1

    Author Closing Comment

    good comments.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now