.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

showing number of items in sub folder

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :SharePoint
Hi, In "All Site Content", we can see the number of items under each folder. But when we open the folder for example Documents, if it has sub folders, there it does not list the number of items. How to list the number of items in the sub folders. Thank you

View Complete Post

More Related Resource Links

View All Site Content Showing the wrong number of items

NOTE:  Similar post also had no answer: http://social.msdn.microsoft.com/Forums/en-US/sharepointecm/thread/f775ba0d-648f-4be3-9017-78539915b281/ I am the Site Collection Administrator/and also tried logging in using Farm Account.  I go into View All Site Content and I show 15 documents.  When you actually go to the All Items view (and I double-checked, no filtering), you only find 9 documents.  Versioning is not turned on.  I am a developer, so I also used the Web Service to try to troubleshoot.  The Lists.asmx web service shows an Item Count of 15 using the GetList method.  However, using the GetListItems method, the item Count reports 9 items, which is what I see in my browser. Is there an stsadm command that I can run that will "true up" this number being reported in View All Site Content? Thanks in advance. - Update -  MOSS 2007 v 3.0 server farm.

Content and Structure Report not showing all items

I have an environment where the Site Owner is not seeing all items pending approval when they access that view from the root node in the Content And Structure section.

We can see pending items in this view if they access some of the lower level nodes in the tree structure, just not from the top node.

I've noticed that the second level nodes are not inheriting permissions from the root node, but I'm not sure if that is relevant. I've also checked the CAML for the Pending Approval view and it has not been altered in any way.

Any ideas?

Cannot count number of checked items using jQuery

Hello,Using Microsoft built-in jquery files, when counting numbers of checked checkbox, the jquery-1.4.2.min.js cannot count the correct result ,however, the version jquery-1.3.2.min.js gives out the correct one, why?            $("#check").click(function () {                var nameSports = new Array();                var i = 0;                $('input[name=selector]:checked').each(function () {                    nameSports[i] = jQuery(this).val();                    i += 1;                });                if (loopCounter != 0) {                    alert(i);                }  

Change Item order wont work for folder items

Hello. Links lists in Sharepoint 2010 have Change Item Order Action which can order your items. I added new content type based on folder content type to my list. And When I want to order my folder items with Change Item Order action Sharepoint sorts my items randomly. For example with 4 folder items it sorts it right in 3 or 4 times. I can't see any rule in it's behavior sometimes it works sometimes not. For Link list items everything is OK. Anyone have an idea? Thanks.

how to access items inside Sharepoint List Folder

hi all i have a list with structure as below  QuckList(List)                A(Folder)                       1(List Items)                       2(List Items)                B(Folder)                        1(List Items)   i have to display the List items inside the folder in drop down   i am able to access the folder as Splistitem, but not able to access the items inside the folder   any ideas how to access the items inside the List Folder   ragava_28

How to apply color to selected number of items in check box list and drop downlist

Hi all,    I want to apply color to selected number of items in checkbox list and seleted number of items in drop downlist for e.g color red for few items and black (default). I have a bit value set in data base so if bit is set to 0 then red and if 1 then back. Please help me.  

GridView Pager not showing proper number of rows

I have created an out-of-the-box  (default everything) ASP.NET Dynamic Data Entities Web Site using VS2010, C# and the .NET Framework 4. Created an ADO.NET Entity Data Model based off a MS SQL 2008 R2 database and registered that EF data model for my dynamic data. Everything works great except for the one change I would like to make. By default, the GridViewPager.ascx file provides the values 5, 10, 15 and 20 in the dropdown for GridView's "Results per page" option. I would like to change that to 10, 20, 30 and 40 - with 40 being the default selected option. I went to the code behind file and modified it to have the values I am wanting. Those values now show in the dropdown, and work if I select them. Problem: when the page is first rendered only 10 rows will show. How can I change this? Any help would be greatly appreciated.   Thanks

List lookup to document library not showing folder names

Hi all, I've got a Sharepoint List, which has a lookup field to a Document Library on the same site. That document library library is populated with several folders, each with several Word documents within. I want my lookup (in the List) to only display the top level folders in the document library. I managed to do that in my test environment. But in my production environment doesn't list the folder names. I've compared the settings in the two and they look identical. What could be wrong, and how to I fix it so that the folder names appear? I'm using SharePoint 2007. Thanks in advance for the help.

Maximum number of items in a SharePoint 2010 list

Hi, Is there a recommended maximum number of items that can go into a SharePoint 2010 list? I seem to recall that earlier versions seemed to have performance problems with more than 2000 items. I have a table that has some 50,000 records and would love to convert it into a list.   Thanks John JohnSpilker

Activity feed not showing tag items...



I'm trying to get activity feed to show items that I've tagged. Its not showing up on my colleagues' newsfeeds. The news feeds are only showing profile changes... Any idea why?

Large number of items in SharePoint calendar


We have a department with a calendar that has over 400,000 items.  We're thinking it somehow got that big due to them linking with outlook.  We've turned that off but the items are still in SharePoint in the calendar.  This is causing a great deal of blocking when that calendar is accessed (CAML queries).  They take several minutes to run and block anyone from doing anything in SharePoint (like saving documents or even accessing SharePoint).  We'd like to just delete the 400,00+ items but I'm not sure what all tables are involved.  I've found that the tables docs and UserData each have the 400,000+ records relating to the calendar in question.  I don't want to simply delete the records from these tables only.  Does anyone know what I need to do to clear the calendar?  Is there a way in SharePoint to just delete the whole calendar and it delete the records where needed and then add the calendar back (and it be empty)?



Display number of items for each metadata in navigation.



Is it possible to display the count of number of documents for specific keyword category in library's metadata navigation? For instance - Draft (1), Approved (0) - or if categories with no documents were not shown at all.


Issue in LookupField control when the number of items exceeds 20


I have one strange issue in using LookUpField control in my publishing page layout. The issue comes when the lookup list grows beyond 20 items, the behaviuor of lookup is changed. If the number of items is more 20 then the control generate a TextBox and an Image and we receive the following error:

Microsoft JScript runtime error: Object required The problem is raised in the Core.js file in the AbsLeft method.

function AbsLeft(obj) {
var x=obj.offsetLeft;
var parent=obj.offsetParent;
while (parent.tagName !="BODY")

 x+=parent.offsetLeft; return x;


I have debug the JS and come to know that BODY tag never comes in while loops so it gives error over there.
If I set fixed Top and Left values then everything works fine.. But I cant as my application will run into different environment with different resolution.

Please help me out on this.

Shahejad Shaikh SharePoint Developer, Gateway TechnoLabs.

Dropdown lists - showing items based on value


Hi, i have over 100 items all loaded in a dropdown list. They all are assigned a value between 1-10 which represent 10 categories.

When certain buttons are clicked, i want the dropdown list to display only items with a value "1" or "2", etc.

How can this be done?

Insering list items into a folder using spWeb.ProcessBatchData


Hello All,

I have created a custom sharepoint timer job which runs in every one hour in order to pull data from a custom sql server database and stored it into the sharepoint list.In the sharepoint list, i am creating folder programatically and storing the data into the folder in the form of list item.

While inserting inserting list item into the folder, i am getting the error as follows.

<Results><Result ID="0" Code="-2130575322">

<ErrorText>The list that is referenced here no longer exists.</ErrorText></Result>

<Result ID="1" Code="-2130575322">

<ErrorText>The list that is referenced here no longer exists.</ErrorText></Result>

<Result ID="2" Code="-2130575322">

<ErrorText>The list that is referenced here no longer exists.</ErrorText></Result>

<Result ID="3" Code="-2130575322">

<ErrorText>The list that is referenced here no longer exists.</ErrorText></Result>

<Result ID="0" Code="-2130575322">

<ErrorText>The list that is referenced here no longer exists.</ErrorText></Result>

<Result ID="3" Code="-2130575322"

Conditional Formatting - Verify a number of check boxes have been checked before showing a button?


I would like to Hide a Submit button until all the check boxes are equal to true? How would I go about verifying all boxes equal true?

ListView items added but not showing up.


This is a windows form.

I have a list view and have added items to it, but they are not showing up.

The code seems to run in debugging mode but still i do not see any items.

The listview is in details mode.

      this.lstvRunDetail.Items[lstvRunDetail.Items.Count - 1].SubItems.Add("bb");
      this.lstvRunDetail.Items[lstvRunDetail.Items.Count - 1].SubItems.Add("cc");
      this.lstvRunDetail.Items[lstvRunDetail.Items.Count - 1].SubItems.Add("dd");
      this.lstvRunDetail.Items[lstvRunDetail.Items.Count - 1].SubItems.Add("ee");
      this.lstvRunDetail.Items[lstvRunDetail.Items.Count - 1].SubItems.Add("ff");

Any ideas?

Thank you


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