Thursday, October 13, 2011

Attach ECB menu to field other than Title field

I was wondering if we can attach ECB menu other than Title field in SharePoint 2010 list.

I was digging to properties that can be used with Fields and I found one.I was creating a list definition and I needed to add ECB menu to other field than the title. I already have one list definition project ready which I have deployed.

Below it the project screen shot and following is the resulting list in the site.

As you can see only Title field gets the ECB menu, not the Order Name field. Let’s change our list definition a little. Add two attributes to order name field.

And here we go, deploy the solution again and you’ll see ECB menu attached to Order Name field.

No comments:

Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to