Thursday, January 17, 2013

Ribbon menu missing on page load after customisation

After  Customisation in sharepoint pages ribbon menu missing on page load for perticular webpart.

            In sharepoint 2010, if you have more than one webpart on webpart page, the ribbon disappears because SharePoint doesn't know which web part to display ribbon for. This is by design because if you have a document library web part and list web part on the same page, the ribbons are obviously differ for the two and sharepoint needs to know which webpart to display the ribbon for.

To avoid the above problem use the following javascript.


var obj = document.getElementById("MSOZoneCell_WebPartWPQ3");
if(obj != null)

var obj1 = new Array()

obj1["target"] = obj

obj1 ["srcElement"] = obj



1 comment:

  1. Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is fantastic, let alone the content!

    3D Animation Services in Atlanta
    Chatbot Development Company
    Android app development in Coimbatore