[CLOSED] Hide Items from Column Context Menu in Grid panel using Renderer?

  1. #1

    [CLOSED] Hide Items from Column Context Menu in Grid panel using Renderer?

    Hi,
    I want to remove/hide some items like 'Group by this field' and 'Show in groups' from context menu.
    i checked this thread for this http://forums.ext.net/showthread.php...r-context-menu
    but solution is for version 1.x.
    Last edited by Daniil; Apr 04, 2014 at 1:58 PM. Reason: [CLOSED]
  2. #2
    Hi @aditya,

    Please use:
    <ext:GridPanel runat="server">
        <Listeners>
            <ViewReady Handler="var menu = this.getView().headerCt.getMenu();
                        
                                menu.items.get('groupMenuItem').hide();
                                menu.items.get('groupToggleMenuItem').hide();" />
        </Listeners>
    </ext:GridPanel>
  3. #3
    Thanks a lot @Daniil,

    It works. perfect solution.... please close this thread

Similar Threads

  1. [CLOSED] Show context menu on column right click
    By RCM in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 15, 2013, 5:38 AM
  2. Replies: 1
    Last Post: Jan 12, 2013, 4:30 AM
  3. Replies: 1
    Last Post: Nov 10, 2011, 1:16 PM
  4. Dynamic context menu items
    By JonG in forum 1.x Help
    Replies: 2
    Last Post: Nov 26, 2009, 7:37 AM

Tags for this Thread

Posting Permissions