I am having trouble determining which DataMenuItem was clicked in my javascript code. When I debug the ItemClick event in javascript, it looks like I get to parameters, the sender and the event. I have Key values set on each of my menu items, but I cannot find how to see which Key value was clicked on. Please help!
Hi jonnydock,
You can get the clicked item's key from the event arguments like this:
var itemKey = eventArgs.getItem().get_key();
Let me know if this helps.
Hello jonnydock,
I'm just checking if you need any further assistance with the matter.