Domanda

I would like to skip the preview-window (CallOut Menu) (red marked in my screenshot) within the context menu / ECB-Menu [(...)-Menu] of a document in a library shown in any list view and go straight into the menu (which is opened when clicking in the preview-window again on the (...).

enter image description here

I have a code solution for doing this when the document library is displayed standardly (not any list for navigating to document):

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $(".ms-list-itemLink > a").each(function(){
        this.setAttribute("onclick","ShowECBMenuForTr(this.parentNode, event); return false;");
    });
});
</script>

Unfortunately, as soon as I switch the view of document library to the view shown in my Screenshot, it doesn't work anymore. What do I have to add to this Code, that it also works for the view of document library shown in my Screenshot? (red marked with handmade "circles")

È stato utile?

Soluzione

In order to get the new menu structure the easiest way will be to modify the existing view or create a new view for that document library or list.

To do so perform the following steps:

  • Go to your document library or list

    In the ribbon clock on Library and then either Modify View or Create view

enter image description here

  • Once the view opens up you will scroll down to the bottom and you will see a section for Styles towards the bottom of the page on the left hand side. The current selection will be set to "Default" enter image description here

Select Basic Table view as this shows the items just as it looks in a default SharePoint 2007 document library and then click OK to save the changes to the view.

You will get this type of output:

enter image description here

UPDATE

Please refer this link: http://www.booden.net/DirectAccessToEcb.aspx

Hope this will fulfill your requirement.

Altri suggerimenti

You can hide the three dots ... with the help of below CSS, event is attached to three dots.

.ms-list-itemLink  {display:none !important;}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top