繁体   English   中英

在extjs中隐藏网格面板的底部工具栏

[英]Hide bottom toolbar of Grid Panel in extjs

如何隐藏agentTypeGridPanel的底部工具栏?

我尝试了.getDockedComponent('bottomtoolbar').hide()但是它不起作用。

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;
};

我认为这就是您想要的。

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

您需要提供网格代码以进行进一步分析。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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