Hi,
Focus changes and scrolls page automatically when using WebDataMenu with ActivateOnHover set to true (it is a requirement, so this post wasn't of any help).
In the attached sample you will find a webdatamenu, next a long page (height = 3000px) so scroll is shown and a textbox at the bottom which is focused. If you scroll up and move the mouse over the webdatamenu page will scroll down to the textbox again.
How can I avoid this behaviour?
Thanks.
That did the trick!
Anyways, returning focus to the previous object seems like something that should be chosen by the developer doesn't it? In order not to add this javascript on every project you use WebDataMenu. A property to set this would be great.
Thanks!
Hi rickycl,
In that case, you could use some jQuery code to bind to the menu. Below is an example of how to do this:
If you have any further questions with this please let me know and I'll be glad to help.
I found another behavior similar to this one but not while hovering items but the menu itself. I have to WebDataMenus at the top of the page with width set to 100% (on is like a menu bar an the other a toolbar) and the same behavior occurs when hovering some part of the menu where there are no items.
Any hints?
That worked like a charm!
Thanks
While ActivateOnHover is set, the WebDataMenu remembers the last element that had focus. You can use the following code in the WebDataMenu's ItemUnhovered client side event to remove the reference to this element.
If you need further assistance with this issue, please let me know and I'll be glad to help.