How to deal with drop-down tabs dynamics crm 2011

Solution 1:

You want expand or collapse a tab in Onload of form, right?

So you have to use this function:

Xrm.Page.ui.tabs.get("tabname").setDisplayState('expanded');
Xrm.Page.ui.tabs.get("tabname").setDisplayState('collapsed');

The state of the tab is independently of the content.