Attach ECB menu / Context menu to other than Title field in SharePoint list view.

You may have noticed that there is a default ECB menu / Context menu present in front of Title field.

Sometimes we do not want default title column in our view due to business requirement or some other reason. So what about the ECB/context menu. We will also loose this menu as it is by default attached to title field. right ?

No we are not 🙂 

We can very well attached ECB/context menu to other columns of our list view.

Refer below Image to get clear idea of  what I am talking about and what we are trying to achieve.

Here “test” is the field name to which we are attaching ECB/context menu. 

Image 1 : ECB Menu that is attached to “Title” field by default.

ECBMenu

Image 2: ECB Menu attached to “test” field. (This is what we want to achieve)
1Capture

Steps: 

  1. Open SharePoint Designer
  2. Go to your list and Open your AllItems View
  3. search for the  tag in your XmlDefinition.
  4. And within this tag, add the ListItemMenu="TRUE" to the field in front of which you want to show the ECB Menu/Context menu. (Refer below screenshot. Here I am adding ECB Menu/Context menu in front of field name test)

Refer below Image:

UE45g

Now Save Your changes and Check In Your Page.

That’s All. Done. 🙂

One thought on “Attach ECB menu / Context menu to other than Title field in SharePoint list view.

Leave a comment