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.
Dear rickycl,
Thank you for contacting Infragistics!
We have received your support request concerning the page jumping with ActivateOnHover set to true, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and I am looking into your sample and am looking into a solution or other workaround and will get back to you by Tuesday with more information or questions for you.
Looking forward to hearing from you.
Hi rickycl,
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.
That worked like a charm!
Thanks
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?
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.
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.