Hi!
I have a client side itemClick for my WebDataMenu and I need to get the ID of the menu item that was clicked.
How can I retrieve the menuItem ID from the eventArgs.getItem()?
Thanx, I figured this out!
Hello,
DataMenuItem does not have ID property. The getItem() method of event-args returns a DataMenuItem client side object, whose properties are detailed here:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.1/CLR3.5/html/WebDataMenu~Infragistics.Web.UI.DataMenuItem_properties.html
Also, keep in mind that DataMenuItem inherits NavItem, whose properties are listed here:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.1/CLR3.5/html/WebDataMenu~Infragistics.Web.UI.NavItem_properties.html
There might be some property that you will need instead of an ID?
Also, if you want to use the DOM element associated with an item, you can access it through element property (get_element() ) :
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.1/CLR3.5/html/WebDataMenu~Infragistics.Web.UI.ObjectBase~element.html
Hope that it will help you