skmMenu? How to add a new event handler to the class
This site has a nice open source Web Menu
www.skmmenu.com
I want to add some custom functionality but have had no luck. There is an event procedure for when a menu item is clicked.
The function is:
Code:
private void Menu1_MenuItemClick(object sender, skmMenu.MenuItemClickEventArgs e)
{
}
The MenuItemClickEventArgs e only holds one property called CommandName.
I want to add more properties to the MenuItemClickEventArgs class that would give me more information about what MenuItem was clicked.
I hoped I could somehow override this event but apparently this is a fixed system function:
Code:
void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
{
OnMenuItemClick(new MenuItemClickEventArgs(eventArgument));
}
So on a postback, the only thing that can be passed back as an argument is one string.
The only thing I can think of is to put several values in a comma separated string and parse it but that sucks!
Can anyone help?