Results 1 to 3 of 3

Thread: adding new menu in gridPanel columns context menu

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Location
    France
    Posts
    74

    Default adding new menu in gridPanel columns context menu

    Hello,

    All is in the title : how to add a new menu in a gridPanel columns context menu ?

    Thanks

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    There is no easily accessible public configuration to do so at the moment in Ext 3.x. As I'm currently working on optimizing the Grid (which has been written from the ground up for Ext 4) I'll make sure this makes it into Ext 4.

    In Ext 3.x, you will want to take a look at the private property hmenu of src/widgets/grid/GridView.js. You can add to this hmenu and then override handleHdMenuClick to provide an appropriate action when your id is encountered.

    In Ext 4.x, you will override a method like getMenuItems for the ColumnContainer and provide an handler, text, etc
    Aaron Conran
    @aconran

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Location
    France
    Posts
    74

    Default

    thank you for your reply

    pending Ext 4, I'll follow your advice

Similar Threads

  1. Disable header context menu(columns) in a grid
    By craypu in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Dec 2009, 2:28 AM
  2. Mouse click does not work on menu items(when menu is rendered as context menu)
    By anilcs0405 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 3 Aug 2009, 5:55 AM
  3. Disabling grid context menu for few columns
    By kolli in forum Ext GWT: Help & Discussion (1.x)
    Replies: 3
    Last Post: 30 Mar 2009, 5:45 AM
  4. Grid context menu, columns extended menu
    By sdetweil in forum Ext 1.x: Bugs
    Replies: 14
    Last Post: 10 Jul 2008, 2:11 AM
  5. Replies: 3
    Last Post: 8 Apr 2008, 11:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •