CRM 2011 JS 设置Tab Expand

var ROSHAN = {};

ROSHAN.expandCollapseTab = function () {  

   var expand = Xrm.Page.getAttribute("mag_expandtab").getValue();  

   if (expand)

     {   

        Xrm.Page.ui.tabs.get("tab.details").setDisplayState("expanded");   

     }

  else

    {      

       Xrm.Page.ui.tabs.get("tab.details").setDisplayState("collapsed");   

    }

}

posted @ 2013-10-25 14:11  Bill 李  阅读(204)  评论(0)    收藏  举报