Please consider the attached image from our web:
In our grids, we usually have some columns with short texts, some longer, some times, some icons.
We prefer "clean" grids, i.e. not a lot of user interaction possible, the titles should display in its entirety, preferrably as little string partiality as possible etc.
Also, we have quite a few columns, so horizontal widths are a scarce resource, as visible in the image.
For these reasons, we ususally have fixed widths for the grids, as well as the columns themself. This leads to us having to have static int[] arrays everywhere with hard-coded widths for each listgrid, having to keep track of the order and contents of each column, so that the width is applied. Usually, one or more fields can be configured to take up "remaining space", so we set those to -1.
My question is basically - in newer versions (we still use 6.0), is there some better way to accomplish this? Is there something you feel we have missed? The way we do things now do not work super-great when grids are resized.
Our use cases:
-Be able to specify varying min widths for certain columns, but have them take up remaining space, or expand horizontally depending on grid width. Would be great here with certain fields sharing the expanding equally if you see what i mean.
-Be able to make a column autofit, for example around icons
-Specify these parameters in XML, so that we don't have to hava java config-classes everywhere and use them when creating grids and fields.
I hope i'm making sense, pointers and thoughts appreciated.
In our grids, we usually have some columns with short texts, some longer, some times, some icons.
We prefer "clean" grids, i.e. not a lot of user interaction possible, the titles should display in its entirety, preferrably as little string partiality as possible etc.
Also, we have quite a few columns, so horizontal widths are a scarce resource, as visible in the image.
For these reasons, we ususally have fixed widths for the grids, as well as the columns themself. This leads to us having to have static int[] arrays everywhere with hard-coded widths for each listgrid, having to keep track of the order and contents of each column, so that the width is applied. Usually, one or more fields can be configured to take up "remaining space", so we set those to -1.
My question is basically - in newer versions (we still use 6.0), is there some better way to accomplish this? Is there something you feel we have missed? The way we do things now do not work super-great when grids are resized.
Our use cases:
-Be able to specify varying min widths for certain columns, but have them take up remaining space, or expand horizontally depending on grid width. Would be great here with certain fields sharing the expanding equally if you see what i mean.
-Be able to make a column autofit, for example around icons
-Specify these parameters in XML, so that we don't have to hava java config-classes everywhere and use them when creating grids and fields.
I hope i'm making sense, pointers and thoughts appreciated.
Comment