How to Enable ECB menu on custom column in SharePoint 2013?

In this post we will discuss how to enable ECB menu on custom column in SharePoint 2013. By default the ECB menu comes for the Title column where user can click on the ECB menu to do some operations like Edit Item, View Item, Workflows, Delete Item etc. See the fig below:

But here one of our requirement is to add the ECB menu into a custom column. I have a custom list where in the Title column the ECB menu is there by default but I wanted to put the ECB menu in a custom column name as First Name.

We can do this by using SharePoint designer. Open your site in SharePoint 2013 designer and then click on the particular list for which you want to do. This will open the settings page for the list. From the Views section click on the particular view (All Items). 

This will open the code view and there search for <View> tag and within that <ViewFields> and then find the particular column for which you want to add the ECB menu and then add ListItemMenu="TRUE" like below:

<FieldRef Name="First_x0020_Name" ListItemMenu="TRUE"/>
It will shown like below:


After that Save and refresh the list and you will be able to see the ECB menu as shown in the fig below:

May be this helps you people... :)

Comments

Popular posts from this blog

SharePoint 2013 Keyword Query (KQL) Content Class Property Restrictions

Filtering the Sharepoint List Taxonomy Column using Rest API

SharePoint CSOM to Create Folders and Sub Folders based on Excel Data