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
NareshKrishnaNareshKrishna 

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.

 

Navatar_DbSupNavatar_DbSup

  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. 

NareshKrishnaNareshKrishna

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.