cancel
Showing results for 
Search instead for 
Did you mean: 

How to destroy/hide column header in sap/m/table?

Former Member
7,149

Hi All,

I want to display data in a table but I don't want to show any header .A header should be completely hidden.

Is there any property to do that??

Here's my code,

<Table id="idcompallowancetable" items="{/Added_AllowancesSet}">

<columns id="idtablecomp" >

<Column demandPopin="true">

<Label text="" />

</Column>

<Column demandPopin="true">

<Label text="" />

</Column>

Please suggest.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

You can just not declare any column data? It worked for me. Like:

<Table>   
  <columns>
    <Column></Column>
    <Column></Column>  
  </columns>  
  <items>
    <ColumnListItem>
      <cells>
	<Text text="Column 1" />
        <Text text="Column 2" />
      </cells>
    </ColumnListItem>
  </items>  
</Table>

Which displays:

Column 1 | Column 2
rajiv_kanoria
Product and Topic Expert
Product and Topic Expert
0 Kudos

Correct Answer

Answers (1)

Answers (1)

Former Member

Hi Lalitha,

Please have a look at Table properties in SAPUI5 Explored. We have a property for column visibility. Hope that is what you are looking for.

Regards,

Srinivasan