Friday, December 31, 2010

How to add a WebPart to SharePoint 2010 site web page.

In this post I will walk you through how to add a web part to your SharePoint site.

In my previous post, i explained how you can create and deploy a custom web part using Visual Studio 2010 to SharePoint 2010 site. In this post I will add my custom web part to Sharepoint site.

To add a web part:
Step 1: Open you SharePoint site in a browser.

Step 2: Select Site Actions, Edit page (similar to SharePoint 2007)  or you can directly use a edit button provided in the Ribbon. The page displays in edit mode.

Thursday, December 30, 2010

Create Custom Actions for SharePoint 2010 lists using SharePoint designer 2010

In SharePoint 2010, it is easier to add custom actions that are scoped to a specific list using SharePoint Designer 2010. To start with adding Custom Action to a list, you have to create your own custom list from Custom List Template.

Step 1: Create a custom list called Phone Book.
Step 2: Open the site in SharePoint Designer 2010 by clicking on Edit Site in SharePoint Designer action off of the Site Actions menu.

How to create a Custom Master Page in SharePoint 2010

Creating a Custom Master Page in SharePoint 2010 is same as creating Custom Master page in SharePoint 2007.
Step 1: Open your root level site in SharePoint Designer 2010 by selecting Site Actions, Edit in Sharepoint Designer.

Wednesday, December 29, 2010

How to increase width of SharePoint List Column

One of my user asked me how we can increase width of SharePoint List Column. SharePoint does not provide a direct way to increase the width of list column. Now again this is a customization.
But one way I could solve this problem is by using javascript.
Copy paste this code in between opening and closing script tags (
) a Content Editor web part and then change the name of the columns like Title, Department etc. Then you are done.

Monday, November 29, 2010

Meeting Workspace error: ‘g_InstanceID’ is undefined

After changing the master page on a Meeting Workspace site, the recurring meeting workspace hyperlinks under “Select a date from the list below” do not work and throw a JavaScript error.

If you create a custom master page and use it for your Meeting Workspaces, a JavaScript error is thrown.

Error:
‘g_InstanceID’ is undefined

Cause:
The g_instanceId global JavaScript variable is declared in a script registered runtime by the