最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Removing headertoolbar of GridPanel in Extjs - Stack Overflow

programmeradmin3浏览0评论

I have a GridPanel in Extjs and i just want to remove or hide its header toolbar. (The toolbar where the title and the searchbox is in). I just want the Gridpanels first element to be the column headers. How can I do it?

I have a GridPanel in Extjs and i just want to remove or hide its header toolbar. (The toolbar where the title and the searchbox is in). I just want the Gridpanels first element to be the column headers. How can I do it?

Share Improve this question edited Mar 14, 2013 at 5:23 Abimaran Kugathasan 32.5k11 gold badges80 silver badges108 bronze badges asked Mar 31, 2011 at 13:09 ChrisChris 7,8558 gold badges53 silver badges103 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 11

hideHeaders property of Ext.grid.GridPanel does the trick.

var grid = new.Ext.grid.GridPanel({
    store: store,
    hideHeaders: true,
    width: 200,
    height: 100,
}

Have you tried setting the header config option to false? See below example:

 var grid = new Ext.grid.GridPanel({
        store: store,
        cm: cm,
        header: false,
        renderTo: 'mygrid',
        width: 600,
        height: 300
    });

If you can't find a suitable config option, calling gridPanel.getTopToolbar().hide() afterwards should do the trick.

发布评论

评论列表(0)

  1. 暂无评论