OnItemClick Event not fire

2 posts, 0 answers
  1. Rami
    Rami avatar
    1 posts
    Member since:
    Sep 2008

    Posted 27 Nov 2014 Link to this post

    I'm using C# with VS 2010 Ultimate
    The RadMenu OnItemClick event does not fire on the sub menu items. (it does fire on the main/top menu.
    How can I get the sub menu's to trigger/fire the OnItemClick Event as well?

    aspx code for menu:
    <telerik:RadMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick"></telerik:RadMenu>

    C# code:
        private void BuildMenu_CreateDocuments()
            RadMenu1.Items.Add(new RadMenuItem("Logout"));
            RadMenu1.Items.Add(new RadMenuItem("Setting"));
            RadMenu1.Items.Add(new RadMenuItem("Document"));

            List<Model.Common.PartnerDocument> lstPartnerDocuments = new BL.PartnerDocumentBL().GetPartnerDocuments(m_intCustomerID, m_intPartnerID, m_bAdmin);

            if (lstPartnerDocuments.Count > 0)
                for (int i = 0; i < lstPartnerDocuments.Count; i++)
                    RadMenu1.Items[ID_MENU_DOCUMENT].Items.Add(new RadMenuItem("Create " + lstPartnerDocuments[i].DocumentName, lstPartnerDocuments[i].PageUrl));

  2. Plamen
    Plamen avatar
    3040 posts

    Posted 02 Dec 2014 Link to this post

    Hi Rami,

    When there is a NavigationUrl on the menu item the ItemClick is not executed. 

    Hope this will help you solve the issue


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top