Skip to main content
11 of 12
edited title
Ronak Patel
  • 3.3k
  • 3
  • 25
  • 45

Change Document Library Webpart's Toolbar Type to 'Show Toolbar' programmatically in 'sharepoint online sandbox solution'

I want to change the Document Library's webpart property 'Toolbar Type' from 'Full Toolbar' to 'Show Toolbar' programmatically.

enter image description here

I am working on Office 365 sandbox solution. I am creating document library & it's view programmatically. I have tried following:

myView.Toolbar = @"<Toolbar Type='FreeForm'/>"; 
        
// I am not sure that it is 'FreeForm' or not for 'Show Toolbar'

I want to achieve this type of view for my library. I want to show toolbar on library programmatically.

enter image description here

If any other solution is possible to get toolbar on Document Library programmatically then provide here.

Ronak Patel
  • 3.3k
  • 3
  • 25
  • 45