Runtime column reordering

In some cases users may wish to change the order of the columns shown in a grid. This is frequently used in cases where many users access the same UI with different goals. Changing the column order, along with showing/hiding columns, helps the user tailor the UI to their particular needs.

In K2BTools it is possible to enable this feature using the Allow Runtime Column Reorder property. This property is available in the general settings object and in the grid columns node.

The property in the general settings object can be used to configure the default value for the entire KB, while the property in the grid columns node (that uses the former as its default value), can be used to override that preference for a specific grid.

If the feature is enabled, the user can drag and drop the column headers to change the position of the columns.

ColumnHeadersRuntime
Column drag and drop

The selected column order is saved to the web session by default. If the user preference persistence module is installed in the KB, it is also saved to the database.

If the column order is saved to the database and a new version of the application adds new columns, they are shown at the end of the grid by default.