Question

I have placed a checkbox in my SAPUI5 xml view as follows:

<CheckBox checked="true" editable="false"/>

However, the checkbox is shown as unchecked. Looking at the reference, "checked" is a boolean field; I cannot see anything wrong in above code.

Reference: https://sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/commons/demokit/CheckBox.html#settings

What's the matter?

Was it helpful?

Solution

sap.ui.commons.CheckBox uses checked, editable and enabled

sap.m.CheckBox uses selected and enabled

<CheckBox text="{field}" selected="true" enabled="false" />

is it possible you are using sap.m.Checkbox

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top