WebDataMenu EnableExpandOnClick doesn't seem to work correctly.
If I set EnableExpandOnClick = true, plus add an event for ItemClick, the root menu item never expands to show the child items. (See attached project.) Instead, the ItemClick event fires when the root item is clicked.
Here's the effect I'm trying to achieve:
1. User must click the root menu items to expand the menu.
2. The ItemClick event should never fire when the root item is clicked.
3. The ItemClick event should never fire when items with children are clicked.
This is just normal windows behavior. I'm just trying to make my WebDataMenu act normal, but I'm not sure how.
BTW, another bug: If you add <GroupSettings ExpandDirection="Down" />, the menu is not under root item. It goes to the far-left of the page.
Hi raywhite,
I want to let you know that I am looking into your inquiry. I will have an update for you on this, by or before Tuesday.
Thank you for contacting Infragistics!
Okay, this is actually expected behavior for when you are handling the server-side ItemClick event.
To achieve the behavior you are seeking, you need to handle client-side ItemClick event, and for the conditions that you don't want the server-side ItemClick event to fire (such as for those items that have children), you would then cancel the client-side ItemClick event.
For the second issue you mentioned regarding the behavior when ExpandDirection is set to 'Down', I do see this behavior reproducing on my end. This issue appears to be a development issue which our engineers will look at and correct. At that stage if a fix is required, it would be applied to the NetAdvantage 2011.2; 2012.1; and 2012.2 assemblies. NetAdvantage 2011.1 has completed its product life cycle and is no longer receiving fixes.
Thank you raywhite!