cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to get checkbox in table for the multiselect of the row.

former_member187188
Participant
0 Kudos

view

<t:Table rows="{/ProductCollection}" title="" selectionMode="MultiToggle"

  visibleRowCount="5" >

  <t:columns >

      <t:Column width="11rem">

  <Label text="{i18n>Tablelable1}" />

  <t:template>

  <Text text="{sender cost}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable2}" />

  <t:template>

  <Text text="{sender activity}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable3}" />

  <t:template>

  <Link text="{profitability}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable4}" />

  <t:template>

  <Text text="{quantity}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable5}" />

  <t:template>

  <Text text="{UoM}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable6}" />

  <t:template>

  <Text text="{description}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem" >

  <Label text="{i18n>Tablelable7}" />

  <t:template>

  <Text text="{amount}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem" >

  <Label text="{i18n>Tablelable8}" />

  <t:template>

  <Text text="{currency}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem" >

  <Label text="{i18n>Tablelable9}" />

  <t:template>

  <Text text="{GL Account}" enabled="false" />

  </t:template>

  </t:Column>

  </t:columns>

  </t:Table>

Implemented this code but not getting checkbox

checked in SAPUI5 Explored here checkbox is there for selection but the same code is not working for me.

And the last three columns i wanted to make it disabled as given in the below expected output screen so the user cannot edit that field . Which property do i need to use it for that ?

Output

Expected output

kindly give your suggestion

Regards,

Abhishek lohiya

Accepted Solutions (0)

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Abhishek,


Add style class to your table "sapUiSizeCompact" (or)  "sapUiSizeCozy".

Check this sample from explored: SAPUI5 Explored

Regards,

Sai Vellanki.

former_member187188
Participant
0 Kudos

Hi Sai,

  <t:Table rows="{/ProductCollection1}"  selectionMode="MultiToggle"

  visibleRowCount="5" width="1281px" class="sapUiSizeCompact " >

but its not working ...I am getting same output without check box

Regards,

Abhishek

Former Member
0 Kudos

Hi Did you find the answer? if you find the answer, can you share with me?

Thank you