[CLOSED] Hide -ContextMenu Tile and Cascade

  1. #1

    [CLOSED] Hide -ContextMenu Tile and Cascade

    Hi Sir,

    I don't want show the Contextmenu for Tile and cascade in desktop control when right click.

    When user right click on the desktop control context menu appears and I have gone through the example code but I have not seen any code related to this.

    Please let me know how to hide this.

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	79 
Size:	76.7 KB 
ID:	25463


    Thank you,
    Vamsi.
    Last edited by fabricio.murta; Dec 02, 2020 at 10:35 PM.
  2. #2
    Hello Sir,

    Waiting for reply.

    Thank you,
    Vamsi.
  3. #3
    Hello @Vamsi!

    Sorry for the delay, please give us a bit more time to check your issue and provide you an answer. No matter what, this should require extension of the desktop component, so we are checking the feasibility of a fix via an override.

    We'll get back to you soon.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    Hello @Vamsi!

    If you want to just remove these entries, you can do this:

    Ext.define("MyMenulessDesktop", {
        override: "Ext.ux.desktop.Desktop",
        createDesktopMenu: function () {
            var me = this,
                ret = {
                    items: me.contextMenuItems || []
                };
    
            if (ret.items.length) {
                ret.items.push('-');
            }
    
            return ret;
        }
    });
    If you want to completely disable context menu, then use this:

    Ext.define("MyMenulessDesktop", {
        override: "Ext.ux.desktop.Desktop",
        onDesktopMenu: Ext.emptyFn
    });
    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Thank you Sir, Work as expected. Please close this thread.
  6. #6
    Thanks for the feedback, glad the suggestion worked for you!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Tile the window once page is ready
    By Vamsi in forum 5.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 11, 2020, 9:52 PM
  2. Tile the window in desktop control
    By Vamsi in forum 5.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 05, 2020, 5:00 AM
  3. [CLOSED] TreePanel ItemContextMenu (Hide Browser ContextMenu)
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 26, 2014, 5:17 PM
  4. [CLOSED] Treepanel cascade check
    By inayath in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 29, 2011, 5:58 PM
  5. Tile and Cascade Desktop Windows
    By vickygajula in forum 1.x Help
    Replies: 5
    Last Post: Dec 09, 2010, 2:37 PM

Posting Permissions