on 10-21-2015 12:03 PM
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>masterListNoDataText}"
select="onSelect">
<items>
<ObjectListItem id="mainListItem2" markFavorite="false" markFlagged="false"
numberUnit="{}"
press="" showMarkers="true" title="{/path}" type="{device>/listItemType}" icon="" >
<attributes>
<ObjectAttribute text="{/path}" />
</attributes>
<core:ExtensionPoint name="extListItemInfo"/>
</ObjectListItem>
</items>
</List>
Regards,
Vamsi
Well if you use multi select, the list will display check booxes on its own.
You need to be in multi select mode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Change your list mode from "SingleSelectMaster" to "MultiSelect.
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
look at this code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.