문제

I need to remove the SharePoint yellow bar notification message for specific document library using C#. I know we can achieve by using CSS as mentioned here

I am wondering is there has any way to achieve this by disabling some property using c# or PowerShell.

도움이 되었습니까?

해결책

what you have described as "yellow bar notification" is called Status bar

The Status bar can't be disabled or enabled using C# or Powershell Because it's not a Server Side property, it's JS SP.UI.Status class that defined in SP.Js / SP.Debug.Js


The alternative solutions to remove/disable the Status bar:

  1. Using JS

    • Remove a specific Status Bar

       SP.UI.Status.removeStatus(StatusBarID);
      
    • Remove all Status Bar

       SP.UI.Status.removeAllStatus(true); 
      
  2. Using CSS

    #StatusBarID
     {
       display:none !important
     }
    

Check also How to use Status Bar in SharePoint 2010?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top