Hi,
I am using a drop down button on the command bar. The number of main menu items unknown in advance, it depends on the number of year of records are stored in the local database. On each main menu item, there are fixed amount of submenu items representing 12 months of a year as shown in the attached image.
My question is how can I know a user has pressed the submenu item from its corresponding parent? Let's say user pressed the submenu item 'January' from the the main menu item '2017', hence, I can show each record stored in the database related to January not January 2016 or January 2018 and vice versa.
I have these line of codes in my application which me to detech which month a user has click a subitem. I just can't figuer out how to detech the click is from which parten..
menuItem[j].Items[m].Click += WonderingRecordsForm_MouseDown;
RadMenuItem clickedMenuItem = (RadMenuItem) sender;
Console.WriteLine(clickedMenuItem.Text);