You need to sign in to do that
Don't have an account?

Disabling selected checkboxes within SelectCheckBoxes component
Hello Friends,
I have a very generic requirement which i am unable to achieve. This is regarding the "SelectCheckboxes" VF component.
Below is the code which i am using:-
<apex:selectcheckboxes value="{!Values}" layout="PageDirection" > <apex:selectOptions value="{!ValueOptions}" /> </apex:selectcheckboxes>
The requirement is that i want to disable some of the checkboxes within this component depending on some criteria.
I tried using the "Disabled" attribute but it disables all the checkboxes instead of disabling selected ones. Is there a way i can achieve this??
Please let me know.
Many Thanks,
Cool_D
You would have to handle that in the controller.Try doing this.
if(<some condition>)
<selectOptionObj>.setDisabled(true);
ListOfSelectOptions.add(<selectOptionObj>).
I hope this one solves it..