Last update:
August 26, 2024
Extending Grid Columns
To extend grid columns, get platformWebApp.ui-grid.extension
in the module run function, and then register the extension function to add a custom column permanently (data-independent) into the list.
order2.js
...
gridOptionExtension.registerExtension("customerOrder-list-grid", function (gridOptions) {
var customColumnDefs = [
{ name: 'newField', displayName: 'orders.blades.customerOrder-list.labels.newField', width: '***' }
];
gridOptions.columnDefs = _.union(gridOptions.columnDefs, customColumnDefs);
});
...
This allows you to add a column that will always be available.