GSCustomMenuSection

Contents for SharePoint, ReactJS, C#, ASP .Net, JavaScript, JQuery, SQL

Friday, May 27, 2016

Hide default "There are no items to show in this view of the list." message using Jquery


While working with SharePoint's OOTB list view webpart, certain times we come accross a situation where there are no records in that particular view. Requirement wants not to display the OOTB message "There are no items to show in this view of the list. To add a new item, click "New"." to end user. In that scenario you can do following to get rid of OOTB message.


  • Open your webpart page in edit mode.

  • Add a content editor webpart to the page.

  • You can either put below javascript in a file and add its reference/ put the code in content editor webpart



  • < script type="text/javascript"> $(document).ready(function(){ $(".ms-vb").css("display","none"); }); < /script>

    Save the page and there you go. OOTB message is hidden in all webparts in page where there are not items to show.


    No comments :

    Post a Comment