Hello Dear
I want to do some stuff in javascript when the user clicks an MenuItem;
As in the IG-Documentation, I use the following javascript function;
function TopMenuClick(MenuId, ItemId) { if (itemId == "mnuID") { } }
In markup declared via;
<MenuClientSideEvents ItemClick="TopMenuClick()"/>
But ItemID and MenuID is always 'undefined' when the javascript function get hit, don't know why "MenuID" is undefined but for the Items I never set anything like a "ClientID" or a "ID" --> So I can understand that this is undefined in Javascript.
Can you tell me if Im doing something wrong, or where I can set the clientID and how to read it via javascript?
Thx
8.3.20083.2059
Hello,
You just need to remove the braces from clientside event declaration.
Change ths line:
into this:
<MenuClientSideEvents ItemClick="TopMenuClick"/>(without braces).