SAPUI5 - Disable Checkbox on List

 

<List
    id="idAttachList"
headerText="{i18n>piList}"
items="{
    path: 'sendFileData>/Attach'
}"
mode="MultiSelect"
updateFinished="onAttachListUpdateFinished"
selectionChange="onAttachListSelectionChange">
    <items>
    <CustomListItem>
        </CustomListItem>
</items>
</List>


onAttachListUpdateFinished: function (oEvent) {
    var oList = oEvent.getSource(),
    oItems = oList.getItems();

oList.selectAll();
oItems.forEach((oItem) => {
    oItem.getMultiSelectControl(true).setEnabled(false);
});
}

Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

C# - BASE64 to Image

PHP - cURL (post by parameter)