Skip to Content
Oct 04, 2016 at 02:21 PM

how to set a visibility for a table column in SAP UI5 through APIs



I am using SAP UI5 1.28 and the sap.m.Table control to display the details of a search pattern.

I need to dynamically show/hide few columns based on various conditions and this can't be done with simple expression binding for the column attribute.

I have a complex search screen and based on the selection criteria, I need to show/hide the column through JavaScript APIs.

I have the table with id "itemTable" and the column id as "column1".

Please let me know the APIs/sample code to hide the above column.