mercredi 25 février 2015

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.








0 commentaires:

Enregistrer un commentaire