SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a public multilingual site which displays (among other things) products in a Document List. On the outside everything is OK, and displayed correct. On the inside (admin mode) the product pages are supposed to be displayed in a Document Library, but some countries products are hidden.

From the source of the web page I find the following script which I'm unable to locate in my solution:

<script type="text/javascript">HideListViewRows("onetidDoclibViewTbl0");</script>

And my All Documents view looks like this:

All Documents View

If I make a test-view, all items are shown as expected:

Test View

My problem is - I can't find it in the solution or somewhere in the JavaScript files on the production server. Where do I find this snippet of code?

share|improve this question
up vote 1 down vote accepted

Don't know where HideListViewRows is defined, but its added from the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\VWSTYLES.xml file.


            <xsl:when test="$IsDocLib or dvt_RowCount = 0"><script type='text/javascript'>HideListViewRows("onetidDoclibViewTbl0");</script></xsl:when>
              <script type='text/javascript'><xsl:value-of select ="concat('HideListViewRows(&quot;', $List, '-', $View, '&quot;);')"/></script>
share|improve this answer
Thanx for your effort, but HideListViewRows doesn't exist in the VWSTYLES.xml. – Benny Skogberg Nov 6 '12 at 9:13
However, using @Dandroid suggestion I found the HideListViewRows in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XSL\VWSTYLES.xsl. – Benny Skogberg Nov 6 '12 at 9:41

It's nested in one of the many javascript files in layouts folder.

You can download a software called FileSeek and search through all files in this folder using keywords, in this case "function HideListViewRows".

I have no affiliation with this piece of software.

share|improve this answer

For some odd reason, the items came back after selecting Modify this View > Scroll down to the bottom of the edit view page and select OK (without making any changes).

Modify View

It exceeds my knowledge why our SharePoint instance behaves this way - but it worked for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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