Tuesday, April 15, 2014

Add Custom CSS to a Sharepoint 2010 Site


Add the below code to include a reference for custom CSS file.
 
<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/sitename/CSS/StyleSheet.css %>" After="corev4.css" runat="server"/>

Thursday, October 31, 2013

Sharepoint Calcualted Column Filter using CAMEL querry



<View><Query><Where><Contains><FieldRef Name= 'columnName' /><Value Type="Text">Filtervalue</Value></Contains></Where></Query></View>


Ref : http://tips.naivist.net/2005/09/26/calculated_fields_caml/

Tuesday, October 29, 2013

Sharepoint Person or Group column multiple selection values get using javscript


  1. var members = oListItem.get_item('AssignedTo');
  2.         for(i=0; i<members.length; i++)
  3.         {
  4.             var member = members[i];
  5.             result += member.get_lookupId() + ', ' + member.get_lookupValue() + '\n';
  6.         }  


Reference URL :http://pholpar.wordpress.com/2012/11/25/how-to-get-the-users-from-a-multivalued-field-using-jscom/

Friday, September 27, 2013

Missing “Column Ordering” in SharePoint 2010 List Settings


If you’re missing the “Column Ordering” setting in your SharePoint 2010 list settings then go to:
List settings -> Advanced Settings -> “Allow Management of Content Types?”
If already yes, change the radio button to ”No” and press “Ok”.  Now check for the “Column ordering” link.


Thursday, June 13, 2013

Sharepoint Datetime Field foramt like "mm/dd/yyyy"


Sharepoint Datetime field format – In below format is “mm/dd/yyyy”

<xsl:value-of select="ddwrt:FormatDate(string(@Your field name), 1033, 1)"/>



Wednesday, May 29, 2013

Removing Checkboxes from a SharePoint List View

Once in a while we get a customer who wants us to remove the checkboxes that display at the top on a list view web part.



This can be accomplished within SharePoint 2010 itself and by modifying the applicable list view.

Modify the list and locate the Tabular View section near the bottom. Expand this section and clear the Allow individual item checkboxes option.

Note: After modifying the view, you may need to reapply the view at the web part level on the page where it displays. Sometimes this type of changes are not immediately reflected on the pages, if never. So you have to force the change to go through, in which case you need to edit the page, edit the web part, and select the view at the Select View drop-down list within the List View section of the web part editing tool pane.