0

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 2

1

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.

3
  • I would like to do it in code
    – gaotter
    Commented Jan 28, 2011 at 8:52
  • Ah right, had a look at this? - jasear.wordpress.com/2009/04/05/…
    – James Love
    Commented Jan 28, 2011 at 9:51
  • I was able to sett the toolbar, but the link did not appear.
    – gaotter
    Commented Jan 29, 2011 at 22:27
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.