You need to sign in to do that
Don't have an account?
Ram Manohar G
Disable specific picklist in pageblocktable. Visualforce apex
Hi ,
I have a pageblock table contains picklist column. If the picklist in a column contains only one value it should be disabled .How can i achive this
Eg:
<apex:column header=' '>
<apex:selectList value="{!selectedCountry}" multiselect="false" > <apex:selectOptions value="{!CountriesOptions}"/> </apex:selectList>
</apex:column>
I have a pageblock table contains picklist column. If the picklist in a column contains only one value it should be disabled .How can i achive this
Eg:
<apex:column header=' '>
<apex:selectList value="{!selectedCountry}" multiselect="false" > <apex:selectOptions value="{!CountriesOptions}"/> </apex:selectList>
</apex:column>
The rendered attribute might look something like:
And in your controller implement a check to set the "oneOption" variable to true when there is only one 'CountriesOptions' object in the List and false otherwise.