grid의 view속성의 forcefit을 true로 해 준다.
        view: new Ext.grid.GridView({            
                forceFit: true,            
                enableRowBody: true,            
                emptyText: 'No Record found'        
        })
그 후 grid의 autoExpandColumn 속성에 column의 id를 지정함
    autoExpandColumn: "아이디명"
columns: [
        {
            id: "아이디명",
            header: "상품명", 
            dataIndex: 'name', 
            sortable: true, 
            width: 150,
            align: 'left'
        }]
 
댓글 없음:
댓글 쓰기