SharePoint Enhanced List View Web Part
I just published an enhanced List View Web Part in the Trentacular SharePoint 2007 Features CodePlex project. The Web Part is a substitute for the out of the box List View Web Part with two additional capabilities:
- Toggling of views in place (without leaving the web part page)
- Ability to display lists located in different sites of the same SharePoint Farm
Development of this Web Part has proved to be a very difficult undertaking, and I would love for any assistance or ideas with how to go about accomplishing this differently.
Here is where I’ve currently landed in the Web Part’s development:
- I am accessing the SPLimitedWebPartManager at the selected view’s url to load the SharePoint List View Web Part that was provisioned for the view when created
- I then use reflection to invoke the private RenderView method of the Web Part
Yes, this sounds extremely hacky, and it is. Using the avaliable SharePoint ListView control didn’t play nice with many custom views (especially when the list used managed content types). I’ve also tried the SPView.RenderAsHtml method, but this also presented problems.
Another possible option would be to use the ListViewByQuery WebControl, but this would require an intense amount of code to duplicate the sorting and filtering that is available through the ListView control. So if you think this Web Part would be useful and would like to contribute to furthering it along, please get in touch.
Here are some screenshots:


Recent Comments