简体   繁体   English

gxt网格中的固定宽度

[英]fixed width in gxt grid

guys i want to fix certain column width ... i want to use setFixed(true) ... here how i create the column 伙计们,我想修复某些列宽...我想使用setFixed(true)...在这里,我如何创建列

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

} }

then how to fix its width ?? 那么如何固定其宽度?

Why not: 为什么不:

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

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

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