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.
< 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