Skip to Content
1

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

Mar 29, 2017 at 05:32 AM

1.5k

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Oct 23, 2017 at 11:51 AM
1

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
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Correct Answer

0
Srinivasan S Mar 29, 2017 at 09:16 AM
-1

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

Share
10 |10000 characters needed characters left characters exceeded