SharePoint Designer 2010: Change Chrome Type property of Web Part in SharePoint Designer

Scenario:

We added web parts in a page layout using SharePoint Designer 2010. Requirement was to set Chrome Type property to “none” of the web part in page layout.

Resolution:

This can be done either in design view or code view of the page layout.

Design View:

Click on the “Design” of the page layout, select the web part. Go to “Web Parts Tools” section of the Ribbon, select “Format” tab and in appearance section you will find “Chrome Type”.

Code View:

If you are adding out of the box web part, you need to add following tag:

<FrameType>Value</FrameType>

Following table provide Chrome Style and values:

FrameType (Chrome Style)

Value

Default

Default

None

None

Title and Border

Standard

Title Only

TitleBarOnly

Border Only

BorderOnly

 

If you are adding customized web part, add following tag:

ChromeType=”None”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: