Hello,
I am upgrading my toolbar from UltraWebToolbar to WebDataMenu (v12.2).
In UltraWebToolbar I could set the AccessKey property for each TBarButton. I cannot find corresponding functionality for WebDataMenu DataMenuItems. I've spent hours trying to find a workaround, including trying templates.
Is there a way to use access keys with DataMenuItems? This is critical functionality for my application.
Thank you.
Hi Mendoza,
Thank you for using NetAdvantage for ASP.NET!
You can look at this article here http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=WebDataMenu_Keyboard_Navigation.html . This can give you some guiding points for the keyboard navigation in WebDataMenu.
The AccessKey property is not available in the WebDataMenu in the way it was reachable through the UltraWebToolbar`s Designer . There is still a way to execute what you want though. You can attach a client event to the WebDataMenu like this:
<ClientEvents Initialize="WebDataMenu1_Initialize" />
Then you will only need to set the Access Keys for the items in the WebDataMenu providing the concrete item and the keyboard`s key that associates with it as arguments to the function WebDatamenu1_initialize(sender, eventArgs).
I hope this helps.
Thank you once more for using Infragistics`products!
If there is still anything unclear don`t hesitate to ask.
Regards,
Alexander Marinov - Associate Software Engineer in Test
Thank you for your reply.
I've previously looked at the page you linked to but it isn't applicable because it doesn't address access keys.
I've worked today with the initialize event as you suggest above, and I am still having difficulty. I can get access keys working in Chrome & Firefox, for the most part, but not IE.
In the initialize event I'm iterating through the DataMenuItems and setting each item's access key.
Setting the accessKey property for the DataMenuItem itself does nothing, but if I use the get_element() method or the get_anchorElement() method and set the accessKey property I can get it working in Chrome and Firefox. But nothing in IE.
Do you have any suggestions as to exactly which object I should be setting the accessKey property on?
Thank you for your help. This was so easy in your UltraWebToolbar, it is so frustrating to spend days on something so simple. Hopefully there is an easy solution.
For IE, I would suggest you to also set the tabIndex property for the menu item elements. Here you can find more information on the matter - http://msdn.microsoft.com/en-us/library/ie/ms533062(v=vs.85).aspx.
Please let me know if this helps.