简体   繁体   中英

Hide bottom toolbar of Grid Panel in extjs

How can I hide the bottom toolbar of agentTypeGridPanel ?

I tried .getDockedComponent('bottomtoolbar').hide() but its not working.

eci.admin.agentType.agentTypePanel = function(attributes){
    var agentTypeGridPanel = eci.admin.agentType.agentTypeGrid(attributes);
    var fieldsGridPanel = eci.admin.agentType.getFieldsGridPanel(attributes);
    var dataPanel = new Ext.Panel({
        itemId: 'eciAgentTypeDetails'+eci.admin.agentType.dataTypeId+'-panel',
        title : 'Agent Type',
        border : false,
        //height : 300,
        hideHeaders: true,
        items : [agentTypeGridPanel, fieldsGridPanel]
    });
    //eci.admin.agentType.GridPanel.getDockedComponent('bottomtoolbar').hide();
    //agentTypeGridPanel.getTopToolbar().hide();
    return dataPanel;
};

I think this is what you are looking for.

GridPanel.getDockedItems('toolbar[dock="top/bottom"]').hidden = true;

You need to provide the grid code for further analysis.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM