문제

I have problem when using GXT. The width of the first column of Grid is adjusted automatically (or set 500px). How to fix it?

This construction:

    ColumnConfig<M, N> firstColumn;
    //some code
    firstColumn.setWidth(width);

does not works, but width of other columns is set correctly

도움이 되었습니까?

해결책

Do you have forceFit or autofill turned on? Both of those will have an effect where columns are sized to fit the available space.

Do you have a autoExpandColumn? That resizes whichever column is set to use the rest of the space.

Several of the GXT Grid examples set the first column to be autoexpand, so if you copied from there, you might still have this turned on.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top