Attach the ECB Menu to another field in SharePoint 2010

One of the things that we’ve often wanted to do in SharePoint 2010 is to not have to have the Edit Control Block or ECB attached to the Title field, if you’re not sure what the ECB is, it’s that drop down menu on the standard List View page.  For instance, recently I wanted it attached to a field called JobId.

In SharePoint 2007, this was a bit of a fag to change, I’ve seen various blog posts about it, but never found a reliable method.  Now it’s pretty simple. You can do it through SharePoint Designer 2010 very easily, but if you want to build a custom list template with everything already configured it’s also simple. But it’s not well advertised!!  So this took me about 2-3 days to track down, and I hope that me putting this up here will save you a bunch of time.

In your List Definition Schema.xml, identify the field you want to attach the ECB to and add in the following attribute:


Here’s a screenshot of a List Template Schema for you.


And here’s the result:


Hope that helps somebody


Dave Mc

About davemcmahon81
Software Developer & Architect, User Group Leader, Speaker, Writer, Blogger, Occasional Guitarist, Man-made Global Warming Sceptic, Climate Change Believer, General Optimist but most of all proud Husband and Dad ...

5 Responses to Attach the ECB Menu to another field in SharePoint 2010

  1. Pingback: SharePoint 2010: Recopilatorio de enlaces interesantes (XVI)! « Pasión por la tecnología…

  2. Many thanks mate .
    Very true ‘But it’s not well advertised’ . Thanks for bring this up here.
    Saved me a lot of time and frustration.

  3. Alex says:

    Nice article davemcmahon81, it helped me. But in my case by some reasons my defined Custom Actions did not appear in this context menu. Have you tried your solution together with defined Custom Action?

Leave a Reply

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

You are commenting using your 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: