.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

No Scrollbar on Document Library Web Part

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Hi there,

My office are using Sharepoint 2007 for their intranet and I have been asked to assisst on a particular page.

The problem - when I add a document library web part to the relevant page and fix the height, the web part only shows those the documents which naturally fit within that height - the remainder are not visible.

Is there no way I can add a scrollbar to this web part so that I can fix the height and still allow users to scroll through all the content of the library?

I tried removing the height limit and restricting the limit on the number of items to be displayed, to see if this enabled any scrollbar function - but to no evail.

Very grateful of any ideas you might have,


View Complete Post

More Related Resource Links

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

Content Query Web Part (CQWP) fails to show picture items from a document/picture library in an anon

I have a Picture Library and am trying to use the CQWP to display a list of items in the library.  The web part shows the items fine in authenticated mode, but it fails to show the items to anonymous users. The error log message is: Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb web, DataRow row, String strDefaultItemOpen, Boolean fSetDocIcon, Boolean fSetOnClick, String fileRefColumnRef, String progIdColumnRef, String fsobjTypeColumnRef, String permMaskColumnRef)     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.PreProcessForDocumentIconAndOnClickAttribute()     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.AddContentQueryData()     at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(String viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform) I'm running SP 2010.  I've tried various scenarios including: 1. Using the default publishing template. 2. Using the blank site template with publishing and lock down features enabled. 3. Us

Odd Document Library Web Part Behavior

I have something rather weird happening on a brand new SP 2010 Server site. I’d be grateful for your thoughts.   On the right side web part zone of my Home page, I have a link list web part that contains some folders with interior links as well as single links at the top level. You click on the folder links and it refreshes and shows only the links inside. This all works as expected.   I also have a web part on the left side of the Home page that simply points to the one and only document library.   However, whenever someone clicks on a link list folder, the proper action of refreshing the link list occurs showing the links inside, but the document library web part on the left does not stay with the default view as it should. Instead I get a long list of garbage with file names showing up as "1" or "0" or "2" or "first floor".   It's really weird. How come I don't get my same document library list as is present when I click the home page URL?   I can tell you that this setup on MOSS 2007 does NOT exhibit the same behavior. The original default view of the document library remains the same each time.   I’m stumped…thanks for the help!   P.S. Is there anyway to post some screenshots? I have 2 of them.

Programmatically Uploading a Documents into a Document Library using web part ?

Hii, Can anyone can help me how to upload the documents to the document library in sharepoint foundation using customization for what our deafult upload.aspx will do !!!!! Thanks in advance !!!! Rgrds//Praveen  

Tag Cloud web part of SharePoint 2010, link only to document library not to document ?

Do tag cloud show only Document library links when the tag is click in Tag cloud web part of SharePoint 2010. Can it show all the document links instead of document library links?

Only fiew part of document library in site page



I'm trying to create a site page containing a part of a document library. I've added a data view web part to my page and then I can see all documents and folders of the library on the site page.

Problem is that I only want to see documents and subfolders that are in a specific folder of the library. I've tried to set the folder scope in designer to "Show only files of a specific folder", but I don't know where to specify the folder. Then I tried to do the same using a filter on the path, but this doesn't work with a "greather then" filter.

Has anyone tried to do the same and how?

Thanks  a lot!

How do I resolve that the documents w/in the document library are not visible via the web part but u


The documents w/in the document library that have been exposed via the document library web part is not visible to our users in Germany but the web part heading and 'Add a new document' link is visible to them; all are visible to other users in same permissions group. The users in Germany can execute the shortcut links to the documents within this library and can upload a document to the library but just cannot see the list of the documents within the library via the document library web part; what baffles is that they can see a sub-set of the documents via the List View webpart on the same landing page. We have checked for their membership inclusion within the site and document library permissions and there is no unique permissions at the document level, and there is no unique filters with the document library web part. Where else do we need to look or do to resolve? Thank you in advance for your help.

Content Query Web Part - Filter Contents of Document Library



I would like to display selective content of document library using content query web part. My document library has multiple folders. I would like to have the content query web part display the contents of one particular folder. And also another content query should display the contents based on a column in the document library. I don't see these options when customizing the query for the content query web part. If this is not possible by default, what is the potentail alternative solution ?



Srikanth Reddy

Data Points: The Enterprise Library Data Access Application Block, Part 3


E nterprise applications can have a wide variety of data update requirements. Sometimes you need to save multiple rows of changes at once within a single transaction. Other times, the user must be allowed to enter multiple rows of data, send them to the database in a batch; and if a row or two fails, only the rows that succeeded should be committed and remain committed.

John Papa

MSDN Magazine October 2005

Data Points: The Enterprise Library Data Access Application Block, Part 2


Last month I explored the foundation of the Enterprise Library Data Access Application Block (DAAB) including how it all fits into an architecture (see Data Points: The Enterprise Library Data Access Application Block, Part 1).

John Papa

MSDN Magazine August 2005

Data Points: The Enterprise Library Data Access Application Block, Part 1


A solid data access later (DAL) can benefit an application by hiding redundant tasks, helping handle exceptions more gracefully, helping clean up resources more efficiently, and providing a layer of abstraction from the database.

John Papa

MSDN Magazine July 2005

IE closing when user try to access the document library

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> IE closing (crashing) when user try to access the document library in share point site.  here we are using WSS2.0.  this problem for not accursed all the users , this problem happening on some users. 

Unable to open pdf from document library MOSS 2007


When I click on a pdf document uploaded in a document library it comes up with a blank page. 

I guess it's trying to open pdf on the browser. I turned off "Display PDF in browser " option in Adobe Preferences, but it doesn't help, same issue.

I tried other browsers too, it's the same issue.

I am able to open all other pdf files local to my machine fine.

I am using IE 8 on my machine (Windows 7) and the Sharepoint server is MOSS 2007.



Can I open the "new" menu in a SharePoint Document Library using Dragon NaturallySpeaking?


When a user, who uses Dragon NaturallySpeaking, says "new" when viewing a Document Library the default content type is selected and the associated application (e.g. Microsoft Word) is launched. This scenario is okay for Content Type selection since the Microsoft Office applications will prompt for the metadata once the file is saved.

If the user needs to create new folders in the Document Library however they need to expand the "new" dropdown menu.

What is the best way for someone using Dragon NaturallySpeaking to expand the "new" menu for a Document Library in SharePoint?

Cannot copy document to other library

When I try to send a document to another SharePoint library (Send To>Other Location) I am receiving a blank message box.  Does anyone have an idea what the empty message box is about or why this error is occurring?  Thank you!

Search does not find text in Word document stored in document library on a Report Center site within



We have a document library on a site created off of the Report Center site template. We uploaded a Word 2007 document with the word zebra in the text. Using the search bar at the top of the page we selected This list: Our document library and searched for zebra. We received no results.

We tested the same thing on another site (site template Team site) within the same site collection and search worked fine.

Does the Report Center search function differently then the search functionality on the Team site?

Tamara Bredemus SharePoint Minion...working up to Maven

File Attachments from info-path forms to Sharepoint document library


Hi Experts,

How to upload file attachements from info-path forms to Sharepoint document library?

I need to add attachement from local-PC/Any User to Sharepoint Document Library.


Any help please?? Appreciated




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend