itemDisabled - Item Disabled
Describes a selection item.
Category
basicsSyntax
itemDisabled="true"
Where
this specification disables item selection. To enable item selection,
do not specify this property.Usage
In Source mode, select the control, click All Properties, and look for itemDisabled under basics.A disabled selection item appears grayed out and cannot be selected.
Examples
This Check Box Group control contains two items for selection one of which is disabled conditionally.<xp:checkBoxGroup id="checkBoxGroup1" value="#{document1.fruit}">
<xp:selectItem itemLabel="Apples" itemValue="apples">
<xp:this.itemDisabled>
<![CDATA[#{javascript:if (session.getCommonUserName() == "Anonymous") return "true"}]]>
</xp:this.itemDisabled>
</xp:selectItem>
<xp:selectItem itemLabel="Oranges" itemValue="oranges"></xp:selectItem>
</xp:checkBoxGroup>