I have a requirement where I have to add extra column on a specific condition to Table Grid.
for example in the below table grid I have to add extra column like employeename to columns attribute dynamically while displaying a list page.kindly example me with clear example.I am struggling on this.
<table id="table"
data-bind="ojComponent: {component: 'ojTable',
data: datasource,
columns: [{headerText: 'Remove', id: 'column1', sortable: 'disabled'},
{headerText: 'Department Id',
field: 'DepartmentId'},
{headerText: 'Department Name',
field: 'DepartmentName'}],
selectionMode: {row: 'none', column:'none'},
rowTemplate: 'row_tmpl'}">
</table>