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.
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()); } }