You need to sign in to do that
Don't have an account?
Onclick Checkbox Expansion delay
Hi,
I have a checkbox with <apex:actionSupport>. onclick on the checkbox should expand and display the content the outputPanel.
The below code is working fine.But there is a delay in Onclick expansion.
<apex:panelGrid id="provSettings">
<apex:outputPanel >
<apex:actionSupport event="onclick" action="{!showProvisionGrid}" immediate="true"
reRender="provSettings"/>
<apex:inputCheckbox value="{!showProvision}" id="provisionChkBox" />
<apex:outputLabel value="Set Up Provisioning" style="font-size:19px"/>
</apex:outputPanel>
<apex:outputPanel rendered="{!showProvision}" >.
Can anyone please help me on this.
Thanks in advance.
Hi,
When unclick checkbox delay happened you can do one thing just put the image
"Please Wait Processing" through <img> tag.
Below is the code snippet it can help you.
<apex:actionStatus onstart="document.getElementById('load').style.display = 'block';"
onstop="document.getElementById('load').style.display = 'none'" id="myRecSav">
</apex:actionStatus>
div contains the image to show and stop behavior with onstart and onstop functionality
You have to give the id of actionstatus for actionsupport'status attribute.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Thanks for your reply.
But for onclick on checkbox, there should not be any delay.Even like the action <apex:actionStatus>.
Can you please suggest me any other alternative.