Pages

Thursday, June 17, 2010

The Ribbon Tab with id: "Ribbon.Read" has not been made available for this page or does not exist. Use Ribbon.MakeTabAvailable()

Last day I was working with few web parts and I had got the error. I had created two pages in ‘site pages’ library. Let’s say one is parentpage.aspx and another is childpage.aspx. There was a web part added in the parentpage.aspx. In that web part I had a button and on the click event of the button I tried to show the childpage.aspx in modal dialog. So I was trying to show a child page inside parent page using SharePoint client modal feature. And I had come up with the error. Let’s dig a bit deeper into the problem.

How to add Web Part page

There are two types of pages (web part page and non-webpart page) you can add in SharePoint. If you just click add page from ‘Site Pages’ library as shown in the image below, the page will be added is non-webpart page.

image

Figure: ‘Add new page’ feature in site pages library

If you want to add web part page then you need to go to ‘Site Actions’ => ‘More Options’ => ‘Page’ and then select ‘web part page’. This is shown in the image below:

image

I had created web part pages and then I tried  to show the page in the modal dialog. And it worked!! So the error was coming up since I was trying to show non-webpart page in the modal dialog.

Solution

So the conclusion is that if you want to show a page in modal dialog taking advantage of SharePoint Modal Dialog API, then you need to make sure that the page you want to show in modal dialog is derived from Microsoft.SharePoint.WebControls.LayoutsPageBase or the page is web part page. So to get rid of the error make sure you have been using WebPart page or your page is inherited from Microsoft.SharePoint.WebControls.LayoutsPageBase .

14 comments:

  1. Article is not matched with title.
    Really poor article.

    ReplyDelete
  2. Thanks for your comment. I'll try to make the future article's title more meaningful.

    ReplyDelete
  3. Thanks for explanation. I found it useful!

    ReplyDelete
  4. Thanks That helped... Actually and the title is exactly matching to the article since the article solves the problem mentioned in the title.

    ReplyDelete
  5. Thanks for this post. This was EXACTLY the problem I was having today and you clearly explained how to solve it!

    ReplyDelete
  6. Excellent.. saved millions of hours!!

    ReplyDelete
  7. Thanks dude.. It saved my time..

    ReplyDelete
  8. Article DOES match title and this helped me tremendously. Thanks!

    ReplyDelete
  9. Thanks a lot!! Saved my time. Keep posting and help others.God bless you.

    ReplyDelete
  10. You may want to check out my article detailing why this problem occurs and how to fix it, including how to make it work for Wiki pages:

    http://blog.furuknap.net/solving-the-ribbon-tab-with-id-ribbon-read-has-not-been-made-available-for-this-page-or-does-not-exist-use-ribbon-maketabavailable

    ReplyDelete
  11. worked for me - thanks for the tip

    ReplyDelete
  12. Thanks a lot.Great post !!!!!!!
    keep up your good work....

    ReplyDelete
  13. Article help me a lot. . . .

    thanks dear,

    keep up your good work
    Regards
    Manoj B. Kalla

    ReplyDelete

Note: Only a member of this blog may post a comment.