none
Hide section in crm 2013

    Question

  • HI

    Hide the section in crm 2013

    I can able to hide tab using this line code

     Xrm.Page.ui.tabs.get('tab_11').setVisible(false);

    i tried for the section

    Xrm.Page.ui.tabs.get('tab_11').sections.get('aggrements').setVisible(false);

    it's not working can you please help  me on this


    Rammohan

    Tuesday, August 05, 2014 3:34 PM

All replies

  • Hi Ram,

    Please try using the name of the section instead of label.

    Xrm.Page.ui.tabs.get("tab_3").sections.get("tab_3_section_8").setVisible(false);
    Regards,

    Jithesh

    Tuesday, August 05, 2014 11:54 PM
  • Hi Thanks for your reply..

    How to hide the subgrid (Grid).. can you please suggest me..


    Rammohan

    Wednesday, August 06, 2014 6:12 AM
  • Hi,

    var subGrid = Xrm.Page.ui.controls.get("subgrid_uniqueaName");

    subGrid.setVisible(false); // hide

    subGrid.setVisible(true); // show

    Or, Place the gird in a Section Or a Tab, and use javascript to show/hide subgrid. 


    Thanks and Regards.



    • Edited by Ravitheja J Wednesday, August 06, 2014 6:22 AM
    Wednesday, August 06, 2014 6:19 AM
  • Hi

    subgrid hiding is not working am getting error message on setvisible method..

    please check in ur end please... it's really urgent for me


    Rammohan


    • Edited by Rammohan Ammiti Wednesday, August 06, 2014 6:34 AM spelling worng
    Wednesday, August 06, 2014 6:33 AM
  • Hi Rammohan,

    Put your subgrid in new Section. then write below code to hide.

    Xrm.Page.ui.tabs.get("tab_name").sections.get("section_name").setVisible(false); 

    • Proposed as answer by Suresh Sorde Wednesday, August 06, 2014 7:03 AM
    Wednesday, August 06, 2014 7:03 AM