Replacing default listview webpart with custom made one

Recently I got a though about replacing normal list view webpart with a custom made one. So I took any of the document library view page (the url is something like http://yourSharePointSite/Shared Documents/View.aspx) and added after the url line: ?Contents=1 (like: http://yourSharePointSite/Shared Documents/View.aspx?Contents=1) which takes you to SharePoint Web Part administration page. This same page comes up if you have a web part that causes error and custom errors mode is ON. So after looking up that page I realized that the list view is a webpart page actually.
 
I have created a small console program that opens SharePoint web page (takes direct url to the page), hides all the web parts in current page and adds designated web part programmatically. This small programs works fine in this case and now I have one view in SharePoint document library that contains totally different "view" from the documents in same library. In this case I created  a web part that uses Telerik ASP.NET AJAX Grid and displays the list items in hierarchical mode. The actual hierarcy is based on three different SharePoint lists. Okay I admit that this solution is looking like gun powder barrell kind of stuff that might cause serious perfomance issue but yet still possible. Again one small thing about SharePoint 🙂
Advertisements

About Sakarih

I am SharePoint developer/architect from Finland and my blogposts are all about SharePoint 2007/2010/2013 stuff. There might be also something else posted.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s