How to collapse Ribbons bar when page is loaded?
When user click on an item display view (DispForm.aspx) the "View" ribbon is always expanded by default. It is annoying sometimes. How can I to make it collapse (not hide) by default? When user need the ribbon buttons he can click the "View" link at top to expand it.
May 19th, 2015 9:58pm


We can add the following JavaScript code into a Content Editor Web Part in the DispForm.aspx page to achieve your requirement.

<script  type="text/javascript"> 
SP.SOD.executeOrDelayUntilScriptLoaded(function() { 
	try {	    
		 _ribbonStartInit("Ribbon.Read" , true , null );         
		//alert("error message");

Or we can add InitialTabId=Ribbon.Read in the QueryString. Like this:


More information:

Best Regards,


Free Windows Admin Tool Kit Click here and download it now
May 20th, 2015 10:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics