In my document library the ribbon tabs (Documents and Library) is not visible unless I click any document. Earlier all the tabs were visible as soon as I navigate to the document library. Why this is happening... Even one of our client is complaining about such behavior.

enter image description here


1 Answer 1


Have you added another Webpart to the AllItems Section? I get this behavior as soon as I add any Webpart to a View.

Removing all other webparts except for the List View Webpart itself should bring you back the desired behavior.


This answer describes a way to get things actually working. Putting the mentioned code inside a

$(function() {...})

worked like a charm here.

  • 3
    Yep, if you have another webpart on the page it will break the default behaviour, so basically when you open the page the ribbon will be empty at all. Only when you select a web part the focus will be made on it, it will activate the correct contextual tabs.
    – Shkipper
    Commented Nov 9, 2012 at 8:18
  • I guess if you have a deep look into the behavior of the mouse-click, maybe you could simulate such a mouse-click with a jQuery snippet, which you would include in a non-visible form-webpart.
    – curmudgeon
    Commented Nov 9, 2012 at 8:23
  • Thank you very much "Curmudgeon" and "Shkipper" for your's valuable inputs. That really helped me to resolve my problems. Yes there was a hidden CEWP on the page that was making the tabs hide.
    – Zakir HC
    Commented Nov 19, 2012 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.