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
80
Collapse/Expand the WebPanel with a button click which is outside the panel
posted

Webpanel is providing a facility to expand or collapse. I wanted one more feature like I have a button on the web page which is outside the webpanel. Now when i click this button i want the webpanel to collapse/expand.

Parents
No Data
Reply
  • 3147
    posted

    You can use the following javascript code to achieve this functionality:

            function togglePanel()
            {
                var panel = igpnl_getPanelById("WebPanel1");
                if (panel != null && panel.getEnabled())
                {
                    panel.setExpanded(!panel.getExpanded());
                }
            }

Children
No Data