cancel
Showing results for 
Search instead for 
Did you mean: 

Display check box in list

Former Member
0 Kudos

Hi All,

Please let me know how to display checkboxes in list as below attached screenshot .

below is my code in XML view to display the view data  :

<List growing="true" growingScrollToLoad="true" id="staging" mode="SingleSelectMaster" noDataText="{i18n&gt;masterListNoDataText}"

  select="onSelect">

  <items>

    <ObjectListItem id="mainListItem2" markFavorite="false" markFlagged="false"

  numberUnit="{}"

  press="" showMarkers="true" title="{/path}"  type="{device&gt;/listItemType}" icon="" >

    

  <attributes>

  <ObjectAttribute text="{/path}" />

  </attributes>

  <core:ExtensionPoint name="extListItemInfo"/>

  </ObjectListItem>

  </items>

  </List>

Regards,

Vamsi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Well if you use multi select, the list will display check booxes on its own.

You need to be in multi select mode.

Former Member
0 Kudos

it is working .. Thanks Amzad !

Regards,

Vamsi

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks guys... I figured it myself ::

var oRowTemplate = new sap.ui.commons.layout.MatrixLayoutRow({

  cells: [

  new sap.ui.commons.layout.MatrixLayoutCell({

  content: new sap.ui.commons.Label({text:"propertyName:"})

  }),

  new sap.ui.commons.layout.MatrixLayoutCell({

  content: new sap.ui.commons.TextView({text:"{propertyValue}"})

  })

  ]

  });

  oMatrixLayout.bindAggregation("rows", "/properties", oRowTemplate);

Former Member
0 Kudos

sorry wrong thread..

saivellanki
Active Contributor
0 Kudos

Change your list mode from "SingleSelectMaster" to "MultiSelect.

Regards,

Sai Vellanki.

vijay_kumar49
Active Contributor
0 Kudos

look at this code

SAPUI5 Explored