SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
setTimeout(function() {
    var elem = document.getElementById("MSOZoneCell_WebPartWPQ2");
    if(elem != null) {
        var dummyevent = new Array();
        dummyevent["target"] = elem;
        dummyevent["srcElement"] = elem;
}, 2000);
share|improve this answer

Your Answer


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.