I'm developing a WebPart for use in WSS3 that uses the RadTicker control. I have followed the instructions here that demonstrate how to enable AJAX in WebParts, but there appears to be something missing. Hovering over the navigation buttons at the top of the screen on SharePoint does not trigger the 'mouseover' event, so they do not change appearance, and instead a javascript error is revealed. I looked deeper and found that when the WebPart is shown on a page, a reference to "WebResource.asx" is no longer present - this contains the 'mouseover' code, and perhaps other SharePoint javascripty stuff.
Anyway, I found the culprit piece of code to be this:
Removing this stops the error in SharePoint, but of course it gooses the operation of the WebPart. It looks as though the scriptmanager is overriding SharePoint's own scriptmanager (although when I check the current scriptmanager while stepping through code, it is empty). Any ideas what could be causing this problem?
Anyway, I found the culprit piece of code to be this:
ScriptManager scriptManager = ScriptManager.GetCurrent(
this
.Page);
if
(scriptManager ==
null
)
{
scriptManager =
new
RadScriptManager();
this
.Page.Form.Controls.AddAt(0, scriptManager);
}
Removing this stops the error in SharePoint, but of course it gooses the operation of the WebPart. It looks as though the scriptmanager is overriding SharePoint's own scriptmanager (although when I check the current scriptmanager while stepping through code, it is empty). Any ideas what could be causing this problem?