You need to sign in to do that
Don't have an account?
Frank Carter
hide checkbox select all before search
Hello,
I need help on vf search page. How To do to hide checkbox select all before the search? All the column are hidden except checkbox:
piece of code
Thanks.
I need help on vf search page. How To do to hide checkbox select all before the search? All the column are hidden except checkbox:
piece of code
<apex:pageBlock id="pgblk"> <apex:pageBlockTable value="{!listBD}" var="b"> <apex:column > <apex:facet name="header"> <apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/> </apex:facet> <apex:inputCheckbox value="{!b.check_box}" id="inputId" /> </apex:column> <apex:column value="{!b.cs.Name}"/>
Thanks.
With a new variable, "listnotnull"
All Answers
rendered : Boolean : A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputCheckbox.htm
Thanks for answer. I added the instruction: but if I Click the search button all header column appear except the checkbox select all. Is it possible to have the select all checkbox only after I click the search button?
Thanks
on click of the Search button, you have to rerender the SelectAll checkbox, use the attribute Rerender on the <apex:commandButton> tag
and specify the Id of Select All checkbox,
<apex:inputCheckbox rendered="{!b.check_box!=null}"onclick="selectAllCheckboxes(this,'inputId')" id=allchkBox"/>
Thank You,
Rajesh Adiga P.
With a new variable, "listnotnull"
thanks for the answer:
I addedd the rerender to the command button: but now button doesn't search, doesn't works.
Thank You,
Rajesh.