contextmenu

How to support html right click (context menu) in iPad safari browser?

风格不统一 提交于 2019-12-24 02:33:42
问题 I have a requirement where right click in an existing website needs be supported in iPad. By convention, right click is converted to long press event in touch enabled devices. I have tested in Chrome in Android devices and it worked while it's broken in Safari in iPad (iPad Air 2, 10.3). Just for reference, I was using this demo site: http://wwwendt.de/tech/demo/jquery-contextmenu/demo/ Could this be a bug in Safari in iOS devices? 来源: https://stackoverflow.com/questions/43589491/how-to

jqgrid context menu position left align

南楼画角 提交于 2019-12-24 02:32:02
问题 I'm creating a contextmenu for my grid rows. when the menu opens it's position is aligned to the right of the click position. my page is rtl aligned, so I would like the contextmenu to be as well rtl - so it should open to the left of the click, How can I change it to be aligned left ? Thank's In Advance. 来源: https://stackoverflow.com/questions/17295062/jqgrid-context-menu-position-left-align

Treeview context menu command not firing

倖福魔咒の 提交于 2019-12-24 01:17:09
问题 I have a treeview bound to a Observable collection of some property type. There is a HierarchicalDataTemplate that shows the data in treeview. Now i need to show specific context menu for each HierarchicalDataTemplate item. I am using the following XAML to show context menu: <HierarchicalDataTemplate ItemsSource="{Binding Collections}"> <TextBlock Text="{Binding Path=Name}"> <TextBlock.ContextMenu> <ContextMenu> <MenuItem Header="Create" Command="{Binding RelativeSource={RelativeSource Mode

Android contextmenu item size / height, how to change?

情到浓时终转凉″ 提交于 2019-12-23 23:45:00
问题 How can i change the contextmenu item's size? height? Thanks, Leslie 回答1: It's not really intended to be modified - it's there to handle menu in standard way. There are some ways to modify the menu and its items (for example see here: http://www.techjini.com/blog/2011/04/19/customizing-background-and-text-color-in-options-menu-android/) but I really think in this case you are far from the original menu idea... Far enough to simply create your own view - whatever you like it to be and show it

Raise context menu command's CanExcute while open the context menu

浪尽此生 提交于 2019-12-23 23:00:10
问题 Can Execute of a ICommand while a Context menu open With the continuation of the above query, Still its not able to achieve. Is there any way to raise context menu command's CanExcute while open the context menu. This need to be done in the context menu itself and here am not able to access the viewmodel. Any idea on this? public static BaseCommand SaveCommand { get { if (saveCommand == null) saveCommand = new BaseCommand(OnSaveCommandClicked, OnSaveCommandCanExcute); return saveCommand; } }

How to add an Extra button on Extjs grid header menu

不羁的心 提交于 2019-12-23 20:49:17
问题 has anybody had the need to add an extra button to the grid panel header menu(sorting\columns)? potentially I would like to add another button to the menu that resets to the default columns model. I can accomplish this using Jquery but I was wondering if there is an EXTjs way to do it. Thanks 回答1: You need to dig through the source to see it's there, but a GridPanel has a view property which is its GridView which in turn has a hmenu property which is the menu it shows when you click on one of

Name filter for eclipse.ui.menus

狂风中的少年 提交于 2019-12-23 13:19:08
问题 I've got a menu contribution, realised through org.eclipse.ui.menus extension point. I'd like to offer this menu contribution only for specific file extensions (e.g. *.pld), but I couldn't figure out how to do this with "visibleWhen". Any ideas? ---------------Update---------------- My extension point so far: <extension point="org.eclipse.ui.menus"> <menuContribution allPopups="false" locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?before=additions"> <command commandId=

How do you make height of context menu items not be fixed (ie scale to size of the particular item) in .Net?

馋奶兔 提交于 2019-12-23 12:32:30
问题 See the two images below. I don't want each item in the menu to be the height of the largest. It should size to fit the contents. I've played around with a number of properties and haven't been able to prevent this behavior. Is it possible? (source: blakerobertson.com) (source: blakerobertson.com) 回答1: Set MenuItem.OwnerDraw to true, then handle the MenuItem.MeasureItem event. This allows you to tell Windows Forms the size of this menu item independently of the size of others, albeit at the

Android: How to include a menu xml inside another menu xml?

冷暖自知 提交于 2019-12-23 09:32:51
问题 Simple question. I have my menu of child items: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/fp_pitcher" android:title="Pitcher"> </item> <item android:id="@+id/fp_catcher" android:title="Catcher"> </item> <!-- SNIP ---> </menu> And later I would want to include it as a submenu of this menu: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android

Unable to set System.Windows.Controls.MenuItem.Icon thru a setter

南楼画角 提交于 2019-12-23 09:31:09
问题 Hi I am trying to have a MenuItem.Icon set thru a style setter: <Style x:Key="MenuItem_Delete" TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}"> <Setter Property="Header" Value="_Delete"/> <Setter Property="MenuItem.Icon"> <Setter.Value> <Image Source="Resources/Delete.png"/> </Setter.Value> </Setter> </Style> I get the following exception at runtime: Cannot add content of type 'System.Windows.Controls.Image' to an object of type 'System.Object'. Error at object 'System