Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I created a custom page in SharePoint that uses standard master page. On the page I am using a listviewbyquery control, but i cannot find how to enable ribbon options for the list.

How do I enable the ribbon?

share|improve this question
    
same problem here. I have a custom action binded on a content type on a list that I show in a custom web part via ListViewByQuery webpart, and I'm not able to show the list ribbon. So I can't execute my custom action. Anyone? –  user8464 May 21 '12 at 12:22
add comment

1 Answer

<script>
setTimeout(function() {
    var elem = document.getElementById("MSOZoneCell_WebPartWPQ2");
    if(elem != null) {
        var dummyevent = new Array();
        dummyevent["target"] = elem;
        dummyevent["srcElement"] = elem;
        WpClick(dummyevent);
    }
}, 2000);
</script>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.