When you show the context menu, set the menuitem's selected style class. Just make sure you remove it upon hiding the menu.
On Apr 20, 12:00 pm, Ernesto Reig <erniru...@gmail.com> wrote: > Hello everybody, > > I´ve googling a bit but I don´t find a good/easy way of achieving this. The > thing is that I need to show a context menu when the user right-click´s on a > treeItem. I have already implemented it, but I also need to have the > TreeItem selected. From the point of view of usability/user experience, I > think that is not "elegant" to show a context menu of an item which is not > selected. It might be confusing and also the user does not know exactly the > TreeItem where he/she has clicked on. > > Any help on this would be appreciated. > > Thank you very much. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.