I added a ListViewWebPart that is setup show the Shared Document list and the first view. My problem is that I do not get the New Dokument link in the web part. How do I get the web part to show the New Dokument button, using code?
2 Answers
From the web part's "Verbs Menu" (arrow in top right of web part) click Modifiy This Web Part, and there should be an option somewhere to display the Toolbar. This will give you the New button, as well as Actions and Settings.
-
-
Ah right, had a look at this? - jasear.wordpress.com/2009/04/05/… Commented Jan 28, 2011 at 9:51
-
I was able to sett the toolbar, but the link did not appear.– gaotterCommented Jan 29, 2011 at 22:27
I found that for me the solution was to use the new XsltListView web part. Here the new item link is default when adding it in code.