Add Custom Right click menu on editable AdvancedDataGrid

Hi,
I have an AdvancedDataGrid whose editable property is set to true and selectionmode is multipleCells.
Is it possible to display custom right click menu when i right click on any cell? Am getting only the
default menu items (Cut, Copy, Paste, Select All). Am using ContextMenu and ContextMenuItem class
for creating the custom right click menu. The same code is working in Flex and not in AIR. Do we have
to use NativeMenu in Adobe AIR? Please help. Attaching sample of my code.
<mx:Script>
<![CDATA[
[Bindable] 
private var cMenu:ContextMenu; 
public function createContextMenu():void {
          cMenu =
new ContextMenu();     cMenu.hideBuiltInItems();
     cMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelect);
     var cMenuItemCopy:ContextMenuItem = new ContextMenuItem("Copy Data");     cMenuItemCopy.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItemSelect_Copy);
     var cMenuItemPaste:ContextMenuItem = new ContextMenuItem("Paste Data");     cMenuItemPaste.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItemSelect_Paste);
     cMenu.customItems.push(cMenuItemCopy);     cMenu.customItems.push(cMenuItemPaste);
this.contextMenu = cMenu;    
private  
function contextMenu_menuSelect(event:ContextMenuEvent):void { }
private function contextMenuItemSelect_Copy(event:ContextMenuEvent):void {
     copy(event);
 private function contextMenuItemSelect_Paste(event:ContextMenuEvent):void {
     paste(event);
]]>
</mx:Script><mx:AdvancedDataGrid  width="100%" height="72%" id="dProvider" creationComplete="init()"
      editable="true" itemEditBeginning="checkIfAllowed(event)" itemEditEnd="onEditEnd(event)"
      selectionMode="multipleCells" itemRenderer="renderer.ColorForDashBoard" contextMenu="{cMenu}"/ >

I have same issue too. Can any one help
Thanks

Similar Messages

  • How can I add custom right-click-menu to column headers in JTable?

    Can anyone point me to a topic on how to customize a popup menu for column headers in JTable? Specifically, I want to add things like "auto-size column" and "hide column".
    Thanks,
    Matt

    Right-click on your table.  Then go to Advanced->Runtime Shortcut Menu->Edit.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How do I add entries to PCManFM's right-click menu? [SOLVED]

    Hello there,
    Is there a way to customize PCManFM right-click menu? I'd like to add custom entries, for instance:
    right click a folder and choose "Start slideshow" to get the following command executed: "qiv -smt <selected_folder>"
    Can this be done? How?
    This could be a system-wide setting or a user setting, I don't really care.
    Thanks for any guidance.
    Last edited by brazzmonkey (2009-03-16 20:42:36)

    Inxsible wrote:Yup that's what I am doing, but on selecting an app from the All Applications tab, it creates a .desktop file in my home folder under the .local folder. The next time you try to go into the Open With menu, Geany (or any other app - that I selected from the All Applications list) shows up twice.
    Well , I'm not sure what's the problem here . I only see this when I attach a media player(e.g mplayer) to different file formats . PcManFM seems to insist on creating a .desktop file for each association but I don't see duplicate entries in the menu .
    ~/.local/share/applications$ ls | grep mplayer
    mplayer-usercreated-1-usercustom-0.desktop
    mplayer-usercreated-1-usercustom-1.desktop
    mplayer-usercreated-1-usercustom-2.desktop
    mplayer-usercreated-1-usercustom-3-usercustom-0-usercustom-0.desktop
    mplayer-usercreated-1-usercustom-3-usercustom-0.desktop
    mplayer-usercreated-1-usercustom-3.desktop
    mplayer-usercreated-1.desktop
    smplayer-usercustom-0-usercustom-0-usercustom-0-usercustom-0.desktop
    smplayer-usercustom-0-usercustom-0-usercustom-0-usercustom-1.desktop
    smplayer-usercustom-0-usercustom-0-usercustom-0.desktop
    Last edited by Nezmer (2009-03-16 22:50:28)

  • Please make top of "add to playlist" right-click-menu to be last three playlists added to - please!

    It is kind of a drag when i want to right-click and add a song to a playlist, when I have to scroll way down on my many lists - Would be great if the top lists shown could be the three (or any low number) lists I previously added songs to. Then it would be easy to add several more songs to the playlists I just added to.. Kinda like they have done on Pinterest, when adding a pic to one of your boards.
    Make any sense?

    Trial and error revealed that it's the Swagbucks button, which is strange, because I don't think that particular extension normally affects the right-click menu at all. It did recently get updated, though, so I suppose a bug of some kind got in. Hopefully Swagbucks will fix that.

  • Right-click menu not showing certain options?

    When I highlight text, and right-click, it used to show options such as "Search Google for '(the highlighted text)'", or "Open Link in New Tab" if the text was a URL. Now, it shows none of these options, or copy, paste, cut, delete, select all, and others. I have a picture '''[http://i.imgur.com/q9N00.png here]''' as an example, and this is seriously annoying me, as the searching for highlighted text was one of my most used features. I've used multiple add-ons that edit the right-click menu, but none of them have worked.
    Any ideas on how I can get it back to normal? Thanks.

    dont know if this will help but heres the table i remembered :
    http://zone.ni.com/devzone/cda/tut/p/id/10383 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • Removing CosmoPod reference under right-click menu

    CosmoPod 4.5.1 for Safari is still referenced under right-click menu after deleting this add-on (Download Linked File with CosmoPod) . How to remove it please? Thanks.

    Hi and welcome....
    Follow the instructions here.
    http://cocoamug.com/cosmopod/user-manual.pdf
    If you didn't save the .dmg file which has the uninstaller according to the instructions at that link, check /Library/Input Managers or Safari / Preferences - Extensions.
    Carolyn
    Message was edited by: Carolyn Samit

  • Custom Right-Click Options with Mighty Mouse (scroll-wheel)

    Is there a way to add custom actions to the contextual right-click menu on the mighty mouse? Or a program that will allow me to do that? I am looking to add a script or other items to the right-click menu options.

    this has nothing to do with the kind of mouse you are using. you can add items to the right-click menu by creating a service. you can make your own using automator.
    also, some applications install services when you install the applications and there are a number of built in services available. you can check system preferences->keyboard->keyboard shortcuts->services and activate the ones you want.

  • [solved] Thunar - icons in right-click-menu are gone

    Hi there.
    Since some time my icons in the thunar right-click-menu are gone. I guess they disappeared with thunar 1.4 but I'm not sure.
    Is there a way to make them come back? I have a hand full of custom actions and the icons help me to distinguish them faster.
    When I open the custom actions manager the icons are still there and are correctly from my current icon theme.
    Thanks for help in advance.
    Last edited by ichi-no-eda (2012-11-14 06:15:17)

    Forgot:
    No DE, WM: Openbox, but both gtk2 and gtk3 are there and up to date.
    I realized that other icons are missing too. Thunderbird and Firefox don't have icons in their drop down menus as well.
    Has something changed in gtk?
    Uhrg. Just found it. In lxappearance you can tick 'Show icons in menus'. Don't know why this was unticked.
    So thread is solved.

  • Question about right click menu

    i want to add a right click event and pop up a menu on the row of "table control"
    dose the "web dynpro project" can do that or i must use "portal application project".

    Hi Charles,
    This requirement is Not possible with Web Dynpro.
    SAP has still not come up, with any APIs to change or edit the right click menu.
    Thanks and regards,
    Sam

  • Simple Right-click menu in Text Area

    How can I simply implement a right-click menu with
    the options copy-paste on a text area or editor pane?
    I believe there must be ready code for sth like that.

        protected void createPopupMenu ()
            mMenu = new JPopupMenu ();
            cutOption = mMenu.add(new JMenuItem("Cut"));
            cutOption .addActionListener ( new ActionListener ()
                public void actionPerformed ( ActionEvent e )
                   //do cut here
            copyOption = mMenu.add(new JMenuItem("Copy"));
            copyOption .addActionListener ( new ActionListener ()
                public void actionPerformed ( ActionEvent e )
                   //do copy here
            pasteOption = mMenu.add(new JMenuItem("Paste"));
            pasteOption .addActionListener ( new ActionListener ()
                public void actionPerformed ( ActionEvent e )
                   //do paste here
            });when you instantiate your textarea or editpane add this line:
            createPopupMenu (); //popup menu for right clickshould work perfectly

  • How to remove the option "Set as default background..." from the right-click menu on a picture, for all users.

    Hi! I would like to know if there is any possibility to remove the option "Set as default background..." from the right-click menu on a picture, for all users. I know that's possible to edit userContent.css or userChrome.css, but this concerns only a profile at a time and being in a domain, I would like to set this for all people using Firefox.
    Can it be possible to edit a mozilla.cfg file to get the same result?
    Thank you in advance for help and tips.

    AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.

  • A long left click shows the right click menu

    When I hold down the left mouse button, the right click menu appears.
    I want to turn off this function, but can't remember which extension controls it or whether the function is built in to Firefox.

    Hooray!! Found it! Thank you Google.
    I found an old - very old - thread on Mozillazine.org:
    http://forums.mozillazine.org/viewtopic.php?f=38&t=340572
    And it IS a normal Firefox feature, but is normally OFF.
    I think I must have recently turned it on after reading a "Firefox Tips and Tricks" article somewhere.
    Anyway, the preference is called "ui.click_hold_context_menus".
    And I just remembered that I added it in my "user.js" preferences file, amongst a load of others:
    * Disable the Delay When Installing New Extensions
    user_pref("security.dialog_enable_delay", 0);
    * To turn off the URL greying
    user_pref("browser.urlbar.formatting.enabled", false);
    * To unhide the "http" portion of a URL
    user_pref("browser.urlbar.trimURLs", false);
    * Enable spell checker in multi-line text boxes & single-line text boxes
    user_pref("layout.spellcheckDefault", 2);
    * Double underline style
    user_pref("ui.SpellCheckerUnderlineStyle", 4);
    * Cycle through open tabs with Ctrl+Tab
    user_pref("browser.ctrlTab.previews", false);
    * Disable Animations for Full Screen
    user_pref("browser.fullscreen.animateUp", 0);
    * Click and hold on a hyperlink to show the context menu
    user_pref("ui.click_hold_context_menus", true);
    * Instant Apply Preferences Without Closing Options Window
    user_pref("browser.preferences.instantApply", true);
    * Middle-click in any textfield, addressbar or searchbox to paste clipboard
    user_pref("middlemouse.paste", true);
    So there's a lesson to be learned here: don't add too many tweaks to your Firefox preferences at the same time or you may forget what you did!
    Thanks, all. I'll now mark this as "Solved"!

  • Wireless Mouse - Can I add a 'right-click' script of my own?

    Hi,
    Couldn't see a forum for wireless hardware. On my mouse I would like the right-click' menu to have a 'mail-to' option as I use it a lot. How can I add this functionality?

    I think V.K. was offering to show you how to write it when he asked how you wanted it to work.
    For a file or folder, you open Automator and choose a Service.
    Set it to receive files and folders in Finder.
    Next, drag a New Mail message action from the Mail library to the right-hand pane of Automator.
    Set any options on the new message that you want as a default, and save the workflow. The name you save it as will show up in the contextual menu under Services
    If you want to be able to send selected text, change (or make another service) the receives text in Any Application.

  • Selecting "open in new tab" from right click menu does nothing

    I just updated to firefox 24 on OXS. The right click menu now makes no sense.
    When I right click on a web link, then select "open in new tab" nothing happens. No tab opens.
    On the other hand, I now see countless irrelevant options for that link, like "copy audio location", "copy image location", "play", "pause", etc when the item I clicking on is not an image, audio, video or any other sort of media. The contents of the right click menu now is longer than my entire screen, completely irrelevant to the link I'm clicking on and the one option that is relevant does nothing.
    How can I fix this?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Disable (all) functions on the block diagram with right-click menu

    Hello to everyone,
    here is one more idea, which I'd like to propose. 
    As for me, it would be useful to have the following: when all components (functions, wires, subVIs, etc.) are selected on the block diagram (like, after ctrl+A), operator could do right-click, and in the menu would appear menu item "Disable everything". After it, all the code could be placed into Disable structure. 
    Of course, I can add Disable structure to block diagram manually, and cover whatever I want, but with right-click menu it would be much faster.
    Also, it can be modified to disable only selected items - then each of them can be placed into separate Disable structure, and, for example, additionaly in the enabled case of Disable structure, corresponding wires will be connected. Sometimes it is needed for testing - just to disable couple functions, and test subVI. Or to disable subVI fully (it's faster, then disable place, where it is called. Especially, if subVI is used in many places).
    It will not make debugging difficult, because anyway Disabled structures are used; such functionallity can just make life a little bit easier...
     

    There is always the File->New... which opens up a new window.  You can have your templates in that window by putting them somewhere (I don't remember where at the moment).
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Installation problem on new macbook pro i7 How do I get a DMG or firefox icon on desktop?

    I can't see anything but the name label on the DMG file. The blue dialogue box only has the applications folder in it. I tried installing both 3.6 and 4 beta versions with the same result.

  • 3D-PDF Textur in Schwarz

    Hallo Zusammen, bei manchen Readern wird meine 3D-PDF in Schwarz angezeigt(links) Der Bevorzugte Renderer steht dann auf "Software" [Strg+K] Geändert auf DirectX9-8 wird das Anfangsbild wie rechts angezeigt, aber direkt beim Versuch zu drehen wird wi

  • SC5.5 wouldn't work after moving to a new MAC and restoring from backup

    Hello My old mac got bad and I purchased a new iMac. After restoring from my time capsule none of the Adobe products work CS5.5 CS4 Acrobat X pro even when I put the serial number that is on the box. AI and ID gave me error 5. Any suggestions? thanks

  • Driver BSOD on Startup after Boot Camp 3.0 Upgrade.

    Hello all you support board types. I have a little bit of a problem these days. Yesterday I went and installed the Boot Camp 3.0 Drivers from my shiny new Snow Leopard Disc. The install went off without a hitch and I hit restart to complete the insta

  • MCP73M01H1 (Napa) - want to use 2 + 4 GB 6400 RAM

    Hi All many motherboards can handle more than the official maximum RAM. Found a 4 GB module on Ebay and want to upgrade my trusted old Pavilion (2008 model, Nvidia 9300 GPU, E4700 CPU). Am looking for an E 8400 CPU and will give it a SSD and an exter