function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hiteshwar marnihiteshwar marni 

wrapper class query

I have a requirment where selected records in wrapper class shold be displayed seperately.Upon selecting a particualr record and displayed in seperatly,that record should not be allowed to select again in wrapper class.i.e that records check box should be disabled.

How to disable selected records checkboxes only
Sure@DreamSure@Dream
Hi Hiteshwar,

Try the following code:
<apex:inputcheckbox value="{!wrapper.check}" rendered="{! !wrapper.check}">
    <apex:actionSupport event="onchange" rerender="theTable"/>
</apex:inputcheckbox>
<apex:inputcheckbox value="{!wrapper.check}" rendered="{!wrapper.check}" disabled="true"/>

Mark this as the solution, if it helped to solve your problem.

Thanks