2016-07-20 273 views
0

傢伙,我想修復某些列的寬度......我想用setFixed(真)...我這裏怎麼創建列固定寬度

private ColumnConfig<ContentAttribute, ContentAttribute> createActionsColumn(int actionsColumnWidth) { 
final BackofficeButtonCompositeCell<ContentAttribute> buttonsCell = new BackofficeButtonCompositeCell<ContentAttribute>(
    createActionsGridCellRenderer().getButtonsCells()); 
final DtoValueProvider<ContentAttribute> valueProvider = new DtoValueProvider<ContentAttribute>(ACTIONS_COLUMN_ID); 
return SenchaGridUtils.createDefaultColumnConfig(valueProvider, actionsColumnWidth, MessagesFactory.bo().actions(), 
    buttonsCell); 

}

那麼如何修正它的寬度?

+0

你是什麼意思與 「它不出現」?它的寬度不固定或者列完全不顯示? – Sebastian

+0

我的意思是在哪裏使用它 –

回答

0

爲什麼不:

ColumnConfig columnConfig = SenchaGridUtils.createDefaultColumnConfig(valueProvider, actionsColumnWidth, MessagesFactory.bo().actions(), buttonsCell); 
columnConfig.setFixed(true); 
return columnConfig;