Skip to Content
author's profile photo Former Member
Former Member

Table display Error with Checkbox

Dear community,

when I add a Checkbox into my ColumnList the height of the cells moved and the checkbox is to low.

<Table

headerText="{i18n>LineItemTableHeader}"

mode="SingleSelectLeft"

items="{MasterModel>time_trackings/?$expand=contract,employee}" >

<columns>

<Column>

<header><Label text="LST Date" /></header>

</Column>

<Column

minScreenWidth="Tablet"

demandPopin="true"

hAlign="Left" >

<header><Label text="Description" /></header>

</Column>

<Column

minScreenWidth="Tablet"

demandPopin="true"

hAlign="Center" >

<header><Label text="Hours" /></header>

</Column>

<Column

hAlign="Center" >

<header><Label text="Consultant" /></header>

</Column>

<Column

hAlign="Center" >

<header><Label text="Commited" /></header>

</Column>

</columns>

<ColumnListItem

type="Navigation"

press="handleLineItemPress" >

<cells>

<ObjectIdentifier

title="{MasterModel>LST_DATE}" />

<Text

text="{MasterModel>DESCRIPTION}"/>

<Text

text="{MasterModel>RE_STUNDEN}"/>

<Text

text="{MasterModel>employee/EMPLOYEE_SHORT}"/>

<CheckBox selected="{

path: 'MasterModel>COMMITTED'

}" />

</cells>

</ColumnListItem>

</Table>

How can I fix it and how can i customize the cell height?

Regards,

Marcel

table.PNG (8.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 29, 2016 at 02:02 AM

    Hi Marcel,

    Will this sample help? Plunker

    Regards,

    Sai.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2016 at 08:13 AM

    i would propose just set the vertical alignment of the cells of the table row by default :-

    <ColumnListItem

    type="Navigation"

    press="handleLineItemPress"

    vAlign="Middle">


    this avoids interfering with the ContentDensity (Cozy vs Compact) responsiveness behaviour of SAPUI5. (as sap.m.Table is a responsive control)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.