Results 1 to 3 of 3

Thread: [Ext JS 4.1] Renaming column header from column menu

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    130
    Answers
    4

    Default [Ext JS 4.1] Renaming column header from column menu

    rename_column_header.png
    Is it possible add a an item to this menu in order to rename the column header?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You could create an override to add the men item

    Code:
    Ext.override(Ext.ux.grid.FiltersFeature,{
        onMenuBeforeShow: function(menu) {
            // add your menu item here; see filters menu for reference
        }
    });
    Scott

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    130
    Answers
    4

    Default

    Quote Originally Posted by scottmartin View Post
    You could create an override to add the men item

    Code:
    Ext.override(Ext.ux.grid.FiltersFeature,{
        onMenuBeforeShow: function(menu) {
            // add your menu item here; see filters menu for reference
        }
    });
    Scott
    I have added the menu item with
    PHP Code:
    menu.add({
                
    checkedfalse,
                
    text'rename',
                
    itemId'rename',
            }); 
    but it has override the filter.

Tags for this Thread

Posting Permissions

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