Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Client Side Expand/colapse
posted

Hi ya,

 i want to colapse/expand and change the visabiltiy of the Webpanel control by clicking on a button. But i cant seem to get

var panel = igpnl_getPanelById('pnlSearch');

 

to work, does anyone have any examples of clientside changes to the webpanel i can use?

 

cheers

 

  • 7694
    posted

    Hello
    Please take a look code below:

        <script type="text/javascript">
            function Button2_onclick() {
                var panel = igpnl_getPanelById("WebPanel1");

                if (panel._expanded) {
                    panel.setExpanded(false);
                }
                else {
                    panel.setExpanded(true);
                }
            }

        </script>
    Hope this helps.