0

Ok so I need to build a visual web part (Has to be Server side and done in visual studio c#) that shows a document library. On selection of the document library, the web part must output the entire folder structure of the document library

What you guys suggest? I was thinking of using a tree view but I am struggling to figure out how to populate it. Any help would be gratefully appreciated.

Thanks

1
  • Exactly what are the requirements that your web part should meet? As it stands now, it's difficult to understand why you should develop a custom web part instead of using the out of the box ones. Is achieving the tree view display mode your primary need/goal?
    – SPArcheon
    Commented Sep 19, 2013 at 9:43

1 Answer 1

1

You could probably use SPGridView, its a SharePoint version of the ASP.NET GridView. You can't populate that client side, but you may populate a dummy row on the server and the use that as a template for adding additinal rows client side

or use the following link to built tree view webpart

  1. http://www.codeproject.com/Articles/37530/Document-Library-Tree-View-Web-Part-for-SharePoint
1
  • Hey i meant server side :P... so I will take a look at it thanks.
    – Gerhardus
    Commented Aug 8, 2013 at 11:17

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.