Есть простой DataGrid
<dataGrid id="testEntitiesTable"
width="100%"
dataContainer="testEntitiesDc"
aggregatable="true">
<actions>
<action id="create" type="create"/>
<action id="edit" type="edit"/>
<action id="remove" type="remove"/>
<action id="bulkEdit" type="bulkEdit"/>
</actions>
<columns>
<column id="username" property="username"/>
<column id="value" property="value"/>
<column id="fileRef" property="fileRef"/>
</columns>
<simplePagination/>
<buttonsPanel id="buttonsPanel"
alwaysVisible="true">
<button id="createBtn" action="testEntitiesTable.create"/>
<button id="editBtn" action="testEntitiesTable.edit"/>
<button id="removeBtn" action="testEntitiesTable.remove"/>
</buttonsPanel>
</dataGrid>
Если сделать так что у последнего столбца не вся ширина (то ширина всех столбцов не на всю таблицу), то при убирании одного из столбцов (в примере я убирал столбец fileRef
), то у другого столбца меняется caption (в примере value
меняется на fileRef
)
Не смог к вопросу прикрепить видео. Добавил его в архив.
jmix-test.7z (456.8 КБ)