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

OnItemClick Event not fire

1 Answer 93 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rami
Top achievements
Rank 1
Rami asked on 27 Nov 2014, 01:50 PM
Hello,
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));
            }
        }
    }


1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 02 Dec 2014, 12:58 PM
Hi Rami,
 

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

Hope this will help you solve the issue

Regards,
Plamen
Telerik
 

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.

 
Tags
Menu
Asked by
Rami
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or