I want to edit document library webpart to change Toolbar Type to 'No Toolbar' programmatically using C#. Actually I want to hide 'add new document' button.
I have created a document library programmatically.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI want to edit document library webpart to change Toolbar Type to 'No Toolbar' programmatically using C#. Actually I want to hide 'add new document' button.
I have created a document library programmatically.
@Ronak, here is the script:
<script type="text/javascript">
$(document).ready(function () {
// Hide all Add new button links on the page.
$('[id^="Hero-WPQ"]').hide();
});
</script>