cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with sap.ui.table.Column menu

0 Kudos

Hello,

I have an sap.ui.table.Table and am using the sorted and filtered properties in its columns. I'm trying to add an additional button (to do an additional unrelated task) to the default column menu that pops up with the sorting, filtering and column freeze options. Can someone point me towards the right direction for doing this.

Additionally, I saw that sap.ui.table.Column has an aggregation - menu : sap.ui.unified.Menu. I was unable to find any documentation on this and/or my google skills have failed me. Any info on how to use the sap.ui.unified.Menu over the default column menu would be greatly appreciated.


So far, I've tried this -


<!-- Status -->

  <table:Column width="4rem" filtered="false" sorted="true"

  filterProperty="Dstat" sortProperty="Dstat" columnMenuOpen="colSel">

      <Label design="Bold" text="Status" tooltip="Status"/>

       <table:template>

            <cc:ColorCircle value="{plan>Dstat}" ></cc:ColorCircle>

       </table:template>

     <u:Menu>

          <u:MenuItem text="1" select="" />

          <u:MenuItem text="2" select=" />

     </u:Menu>

  </table:Column>

which gives me this error - sap.ui.unified.Menu: The Menu is popup based and must not be rendered directly as content of the page

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Abdul,


Will this sample help? Plunker


Regards,

Sai.

0 Kudos

Thank you, this seems to be exactly what I was looking for.

Answers (0)