From what I could find, there is no method that allows this behavior.
One of the options that I personally donβt recommend is to access the HTML DOM and disable the input field that makes up the sap.m.Combobox component.
Keep in mind that if the development of SAPUI5 changes the internal operation of the Combobox component, your code may be corrupted if you update the SAPUI5 libraries.
At the same time, to use this option, you can do something like:
oSelection.onAfterRendering = function() { if (sap.m.ComboBox.prototype.onAfterRendering) { sap.m.ComboBox.prototype.onAfterRendering.apply(this); } document.getElementById("<id>-inner").disabled=true; }
replace <id> -inner with the correct identifier specified by your component.
This has been tested using version 1.22.8 of the SAPUI5 development toolkit.
source share