Create Custom List Property in SharePoint List Setting

Posted: July 13, 2014 in SharePoint2010

Introduction

In this article we create a Custom List property in a SharePoint List in List Settings under the “General Settings” Category.

Use the following procedure to create the sample.

1. Execute Visual Studio 2010; in SharePoint  2010 select “List Definition” and name it “NewTestDef”.

Create List Definition

2. Open Element.xml for editing the List Name.

Open Element xml

Edit last name3. Open another “Element.xml” under NewTestDef and add a “Custom Action”.

Add Custom Action

4. Deploy the solutions and then check.

Deploy the Solutions

Solution Explorer

Cs.Code

 

protected void Button2_Click(object sender, EventArgs e)

{

page.ClientScript.RegisterStartupScript(owner.GetType(),

“ShowMessage”, string.Format(“<script type=’text/javascript’>alert(‘Hello..!’)</script>”);

}
Summary 

In this article I would like to add a custom link to a SharePoint list settings page.

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