[CLOSED] Grid Header & HeaderMenu (v2)

  1. #1

    [CLOSED] Grid Header & HeaderMenu (v2)

    In relation to this thread: http://forums.ext.net/showthread.php...amp-HeaderMenu

    In v2 this function doesn't work because 'beforeColMenuShow' doesn't exists. What I have to use now?
    setMenuHeader: function (grid, columnId, headerMenuText) {
            var view = grid.getView();
            view.beforeColMenuShow = view.beforeColMenuShow.createSequence(function () {
                
                view.colMenu.items.each(function (item) {
                    if (item.itemId.substr(4) === columnId) {
                        item.setText(headerMenuText);
                    }
                });
            });
        }
    Last edited by Daniil; Jun 18, 2012 at 1:12 PM. Reason: [CLOSED]
  2. #2
    Hi,

    In Ext.NET v2 please just use the Column MenuText property

    Example
    <ext:Column runat="server" DataIndex="test" MenuText="Some Menu Text" />
    See also
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.column.Column-cfg-menuText
  3. #3
    It works again, thanks!

Similar Threads

  1. Replies: 4
    Last Post: Jul 13, 2012, 7:47 PM
  2. [CLOSED] Grid Header & HeaderMenu
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 18, 2012, 12:28 PM
  3. Replies: 16
    Last Post: Feb 23, 2011, 10:03 AM
  4. Problem about gridpanel headerMenu columns height
    By zhangsir199 in forum 1.x Help
    Replies: 0
    Last Post: Nov 17, 2010, 3:04 AM
  5. Replies: 9
    Last Post: Apr 27, 2009, 3:19 PM

Tags for this Thread

Posting Permissions