.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

perevent limit number of items in contentquery webpart

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#



I want to perevent limit items from content query webpart .

there is a check box in the editor called "Limit the number of items to display". How Can I uncheck this check box by code ?


View Complete Post

More Related Resource Links

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);                }  

showing number of items in sub folder

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

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.  

How can I limit the number of parameter selections?

HI I'm wondering if I can limit the number of parameter selections. For excample, user must  select 2 years in YEAR dropdownlist. Many thanks.

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

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.

Drop DownList (Limit the number of rows)

Hi All, I have a dropdown list. This is a bound to a column in Table which has around 200 entires.Now when a user clicks on the drop down list I want him to see not more than 10 rows. The rest he should navigate by using scroll bars.Please advise me on how to achieve this.Rg/-

Unable to reference custom XSL files in a custom ContentQuery WebPart



I'm doing a custom ContentQuery WebPart but i'm having difficulties referencing my XSL styles. I've googled a bit and tried to store the custom XSL files in the /Style Library/XSL Style Sheets/ and referencing them like this

<property name="MainXslLink" type="string" >/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and since i read SharePoint might have not be able to use SiteCollection relative urls i tried this:

<property name="MainXslLink" type="string" >http://my-dev-site/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and my first approach was:

<property name="MainXslLink" type="string" >/UIResources/CQWebPartMain.xsl</property>

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)?



Report Model--is there a limit on the number of rows?

Is there a limit on the number of rows that a report model will support? Our report model has tables that have millions of rows of data. When we regenerate the model it starting to take hours to regenerate. Is that expected? Is there a limit on the number of rows that can be used with a model?
Kim B.

Tag Cloud WebPart Problem - Error: The tagged items could not be displayed. There was a problem reac

When i click on the tag within the tag cloud. it transfers me to a page and says - Error: The tagged items could not be displayed. There was a problem reaching the search service. Please contact your system administrator for assistance.

please tell how should i resolve this problem.

Limit number of characters in the view field



I wonder if I can limit number of characters that are being displayed in the view.  For example, one of the columns sometimes has very long description.  I want people to see only 300 characters, and if they want to read more, they have to click on the link to go to details.

Is it possible?

Thank you.

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.


Content Query WebPart shows page items with status "draft", and page items that current user does no



I have this issue that CQWP is rendring items that it should not render. I test this with a read-only user, that should NOT see draft pages or pages with different permissions. But the read-only user do see the items, but when I click on the link I get access denied. This access denied is correct, but why does the page items appear in the CQWP at all?


1) I use OOTB CQWP (inherits from ContentByQueryWebPart in my .webpart file) : "<type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart ....." and I have my custom xsl to get the look and feel I need

2) The issue with page items showing when status = drafts only appear when using the PublishingExpirationDate field. When I try creating new pages and give them status draft by using "check in to share draft" (logged on as an contributer/approver user), this item wil NOT appear in the CQWP for the read-only user. When I change a pages' status from approved to draft, this item will still be shown in the CQWP, but this will point correctly to the published version. But after the pages' expired date (PublishingExpirationDate) is expired, the page gets status "draft" (handeled by a timer job I guess), and this page item will still be rendered in the CQWP, but sending the read-only user to an access-

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.

What is the max limit for number of characters in multiline text in Sharepoint?



In Sharepoint list, i have a column define as multiline text.  I want to know, what is the max character limit in multiline text, and how can I increase it to unlimited text?

Thanks any help.

Abhijit Sil

How to Access List view webpart selected items


I'm displaying a list view in list view web part on web part page.

I want a solution to get selected items from the list view web part.

As I am displaying these results on web part page, i don’t have access to ribbon to add any custom buttons.

Any client side or server side code solution should be fine.

Thanks in advance.


I tried this code but it's returns null values


var ctx = SP.ClientContext.get_current();
              var items = SP.ListOperation.Selection.getSelectedItems(ctx);
              var myItems = '';
              var k;
              for (k in items)

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