I don't understand how in SharePoint you can activate a right-click context menu on the rows of a list web part.
I have two different pages. In each page I have 4 views. For some reasons (?) in page A when I right-click an item row the standard ecb context menu appears; while in page B when I right-click an item row, the system shows menu the standard browser context menu.
Looking at the HTML code of the view rows I can see that the difference is in how the tr
element is configured. The property oncontextmenu must have ShowCallOutOrECBWrapper
call. In page A I have:
<tr class=" ms-itmHoverEnabled ms-itmhover" oncontextmenu="return ShowCallOutOrECBWrapper(this, event, false)" iid="14,47,0" id="14,47,0" setedgeborder="true">
While in page B the HTML shows:
<tr class=" ms-itmHoverEnabled " iid="3,47,0" id="3,47,0" setedgeborder="true">
How do I activate the same behavior in page B?