Hello,
I am working on a scheduler web part and have recently added the custom tooltip capability using the RadTooltipManager. I have followed this demo pretty my to the t: http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx It's working great in Sharepoint 2010, but when I add my web part to the Sharepoint 2007 environment, I get this nasty error and my page crashes:
"
I know for a fact that Sharepoint web parts have a script manager on the page, and just in case we're checking for its existance in the OnInit event:
Due to procedure limitations we're currently forced to use the 2010.1.309.35 version of telerik controls.
Any ideas what could be going wrong?
I am working on a scheduler web part and have recently added the custom tooltip capability using the RadTooltipManager. I have followed this demo pretty my to the t: http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx It's working great in Sharepoint 2010, but when I add my web part to the Sharepoint 2007 environment, I get this nasty error and my page crashes:
"
The control with ID 'RadToolTipManager1RTMPanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
"I know for a fact that Sharepoint web parts have a script manager on the page, and just in case we're checking for its existance in the OnInit event:
protected
override
void
OnInit(EventArgs e)
{
base
.OnInit(e);
Page.ClientScript.RegisterStartupScript(
typeof
(Adapter20),
this
.ID,
"_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;"
,
true
);
if
(
this
.Page.Form !=
null
)
{
string
formOnSubmitAtt =
this
.Page.Form.Attributes[
"onsubmit"
];
if
(!
string
.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt ==
"return _spFormOnSubmitWrapper();"
)
this
.Page.Form.Attributes[
"onsubmit"
] =
"_spFormOnSubmitWrapper();"
;
}
// Register the ScriptManager
ScriptManager scriptManager = ScriptManager.GetCurrent(Page);
if
(scriptManager ==
null
)
{
scriptManager =
new
ScriptManager();
scriptManager.ID =
"CWScriptManager"
;
scriptManager.EnablePartialRendering =
true
;
Controls.AddAt(0, scriptManager);
}
//scriptManager.EnablePartialRendering = true;
scriptManager.LoadScriptsBeforeUI =
false
;
}
Due to procedure limitations we're currently forced to use the 2010.1.309.35 version of telerik controls.
Any ideas what could be going wrong?