Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    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
    Add comment
    10|10000 characters needed characters exceeded

  • 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

    Add comment
    10|10000 characters needed characters exceeded