webpart not opening in modal

i created a custom web part.. then i try to open it in new web page it opens properly.

but when i have provided link of this webpart inside another webpart, using onlcick= "javascript:OpenPopUpPage('" + url + "')"; sothat it opens in modal popup in click, it throws the foll error..

any clue as to what it is trying to say?

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

May 27th, 2011 10:34am

Hi this problem occurs when the page which you are trying to open is a Web Part page that requires a Ribbon control

following posts also talk about the same

http://kanithi.wordpress.com/2011/03/07/calling-a-sharepoint-page-from-report-viewer-web-part-using-sp-dialog-box/

http://ranaictiu-technicalblog.blogspot.com/2010/06/ribbon-tab-with-id-has-not-been-made.html

 

 

Free Windows Admin Tool Kit Click here and download it now
May 27th, 2011 11:43am

Hi this problem occurs when the page which you are trying to open is a Web Part page that requires a Ribbon control

following posts also talk about the same

http://kanithi.wordpress.com/2011/03/07/calling-a-sharepoint-page-from-report-viewer-web-part-using-sp-dialog-box/

http://ranaictiu-technicalblog.blogspot.com/2010/06/ribbon-tab-with-id-has-not-been-made.html

 

May 27th, 2011 12:25pm

The error actually say exactly what to do :-) I've written an article to explain how to implement a fix to get the ribbon working also for wiki pages (or other pages that require an initialized ribbon).

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

.b

Free Windows Admin Tool Kit Click here and download it now
January 17th, 2012 7:43pm

Use the following code into CreatChildControls Method

Page currentPage = this.Page;
SPRibbon ribbon = SPRibbon.GetCurrent(this.Page);
SPContext context = SPContext.Current;
ribbon.MakeTabAvailable(SPRibbon.ReadTabId);

April 10th, 2014 5:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics