This topic contains 4 replies, has 2 voices, and was last updated by Peter Stoev 11 years ago.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Navigation › Menu, Context Menu › Context Menu – how to show up in the direction
Tagged: Context Menu, direction up
This topic contains 4 replies, has 2 voices, and was last updated by Peter Stoev 11 years ago.
Hi all!
How to make what the context menu opened up, not down as usual now?
Thanks a lot.
Now I’m trying to do as follows:
var source = [
{html: "<img src='../../images/settings.png'/><span style='position: relative; left: 3px; top: -2px;'>Settings</span>"},
{html: "<img src='../../images/favorites.png'/><span style='position: relative; left: 3px; top: -2px;'>Favorites</span>"},
...
];
$("#jqxMenu").jqxMenu({ source: source, width: '120px', height: '140px', autoOpenPopup: false, mode: 'popup'});
$("#jqxMenu").jqxMenu('setItemOpenDirection', 'left', 'up');
But it does not help in solving the problem.
Hi Ilya,
This is unfortunately not possible. jqxMenu does not have such functionality.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com
Thanks for the answer!
But now I have found some solution and some decided to refine their problem: http://www.jqwidgets.com/community/topic/context-menu-on-jqxgrid-itemclick-not-working
There’s a single line of code corrected the code like this:
var contextMenuHeight = 120;
...
contextMenu.jqxMenu('open', parseInt(event.clientX) + scrollLeft, parseInt(event.clientY) + scrollTop - contextMenuHeight);
Hi Ilya,
This code offsets the Y position of the menu and nothing else. The display animation is the same, but if it is OK as a solution for you, you can use it.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com
You must be logged in to reply to this topic.