Via system configuration it is possible to customize the default configuration of these 2 tabluar views (for other tabular views this could also be enabled with some development).
It is possible to adjust the column width, the column order and if a column is hidden or visible by default.
Setting the visibility
To define, if a column should be hidden, use the hidden attribute as shown in the example above. If you want to show it instead by default, set hidden to false.
To set the width, use the width attribute as shown in the example above. Please note, that some columns have a defined minimum width. Where this is the case, a width that is set in the config and that is smaller than the minimum width set in the application itself will be ignored.
For defining the order of the columns, all columns that exist in the table must be listed in the configuration. If you do not list all columns in your configuration, only the visibility of the listed columns and their width will be adjusted but the order of your configuration will be irrelevant.
// On this example, changes will be applied over 'adminTaskGrid' and 'adminUserGrid' //example: column configuration with column order included //NOTE: don't add the comments in your column configuration { "#adminUserGrid": { "columns": [{ "id": "targetLanguage", "width": 100 }, { "id": "sourceLanguage", "width": 100 }, { "id": "roles" }, { "id": "gender" }, { "id": "surName" }, { "id": "email" }, { "id": "login" }, { "id": "firstName" }, { "id": "userGridActionColumn" }] }, //example: column configuration without column order included //NOTE: don't add the comments in your column configuration "#adminTaskGrid": { "columns": [{ "id": "taskName", "hidden": true }, { "id": "taskGuid", "hidden": true }] } } |