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.
Image 2: ECB Menu attached to “test” field. (This is what we want to achieve)
Steps:
- Open SharePoint Designer
- Go to your list and Open your
AllItems
View - search for the
tag in your
XmlDefinition.
- 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 addingECB Menu/Context menu
in front of field nametest
)
Refer below Image:
Now Save Your changes and Check In Your Page.
That’s All. Done. 🙂
Reblogged this on southbuzz.
LikeLiked by 1 person