Telerik.Web.UI.RadToolTipController is null or not an object

8 posts, 0 answers
  1. oneshot
    oneshot avatar
    9 posts
    Member since:
    Oct 2006

    Posted 13 Mar 2008 Link to this post

    Hi,

    I am trying to use the RadToolTip with the RadScheduler to show tool tips when hovering over the appointments.

    I have copied this section of code from mutiple different articles and documentation files/examples

    <script type="text/javascript">  
      //<![CDATA[  
               function hideActiveToolTip()  
               {              
                 var controller = Telerik.Web.UI.RadToolTipController.getInstance();  
                 var tooltip = controller.get_ActiveToolTip();  
                 if (tooltip)  
                 {  
                   tooltip.hide();   
                 }  
               }  
                
               Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);  
               function beginRequestHandler(sender, args)  
               {  
                 var prm = Sys.WebForms.PageRequestManager.getInstance();  
                 if (args.get_postBackElement().id.indexOf('RadScheduler1') != -1)   
                 {   
                   hideActiveToolTip();   
                 }   
               }   
      //]]>  
    </script> 

    but when i launch my page i get a javascript error saying 

    Microsoft JScript runtime error: 'Telerik.Web.UI.RadToolTipController' is null or not an object

    As of yet i have no idea whether it's something i'm missing or a problem with the build i'm using (Version Q3 2007 released 12/18/2007 taken from live example page).

    I know this isn't the latest release but we have had to make a decision to continue development until a problem with the build stops us or the final production version is released.

    Any help greatly appreciated

    Thanks in advance

    OneSHOT

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 14 Mar 2008 Link to this post

    Hello,

    I assume that you have used the RadToolTip integration example as a reference. The error message suggest that you have not included a RadToolTipManager instance on the page. Here is how the definition looks in the example:

    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="300" Height="150" 
    Skin="WebBlue" Animation="None" Position="BottomRight" Sticky="true" Text="Loading..." 
    OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" /> 


    Greetings,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. oneshot
    oneshot avatar
    9 posts
    Member since:
    Oct 2006

    Posted 14 Mar 2008 Link to this post

    Hi Tsvetomir 

    That is correct, the i have used the RadToolTip integration example and do have a RadToolTipManager on the page declared as shown i think the only difference between yours and mine is i removed the Skin="WebBlue" attribute

    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="300" Height="150" 
      Animation="None" Position="BottomRight" Sticky="true" Text="Loading..." OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" /> 

    I have put in a temporary work around as follows

     

     function hideActiveToolTip()  
                {              
                    if(Telerik.Web.UI.RadToolTipController != null)  
                    {  
                        var controller = Telerik.Web.UI.RadToolTipController.getInstance();  
                        var tooltip = controller.get_ActiveToolTip();  
                        if (tooltip)  
                        {  
                            tooltip.hide();   
                        }  
                    }  
                } 


    but i have a feeling that i shouldn't need to do this according to the documentation.

    Thanks
    OneSHOT

  5. oneshot
    oneshot avatar
    9 posts
    Member since:
    Oct 2006

    Posted 14 Mar 2008 Link to this post

    Just as an update, i now receive a popup tooltip as soon as i enter the scheduler! it's as if the RadScheduler has been added as a TargetControl of the RadTooltipManager but this is not the case. 

    due to this when the RadToolTipManager1_AjaxUpdate event fires the split on the first line fails as the TargetControlID is RadScheduler1 (there are no underscores), this causes and index out of bounds error.

    Can anybody help with this issue as i feel if i can solve this one i wont have to worry about my inital problem as the javascript "tweak" should cover it

    Thanks in advance
    OneSHOT        
  6. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 14 Mar 2008 Link to this post

    Do you have any TargetControl for it or no?
  7. oneshot
    oneshot avatar
    9 posts
    Member since:
    Oct 2006

    Posted 15 Mar 2008 Link to this post

    Hi Piyush,

    At the point in time where the popup is occuring on the RadScheduler control i do not have any targetcontrols registered with the RadToolTipManager.

    When i do have TargetControls registered with the RadToolTipManager i get an error just after the RadScheduler1_AppointmentCreated event has fired, this states 

    Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.

    and occurs in the javascript in a ScriptResouce.axd file, the line where it breaks is
    if ((typeof(element._events) !== 'object') || (element._events == null)) throw Error.invalidOperation(Sys.Res.eventHandlerInvalid); 

    where this javascript is being called from i'm not sure but have a feeling it is the line in the javascript function above that reads

    Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler); 

    Again i am not certain on that one but figured it may help.

    Thanks in advance!

    OneSHOT
  8. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 17 Mar 2008 Link to this post

    Hello,

    Please, make sure that you are using the latest version of the Prometheus suite. We fixed a similar problem in Service Pack 2 and using an older version my be the cause of your problems.

    Sincerely yours,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Yvo van Wijk
    Yvo van Wijk avatar
    7 posts
    Member since:
    Dec 2006

    Posted 11 Jul 2008 Link to this post

    I've had the exact same problem and I've tried all possible solutions.
    What worked for me was to add a lot of stuff into my web.config file and deleting the following line which was cuasing the error.

    <

    xhtmlConformance mode="Legacy"/>

    I'm not sure what it does but after tracing a lot of hours, this was cuasing the problem for me.

    my config looks like this now:

    <?

    xml version="1.0"?>

    <!--

    xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"-->

    <

    configuration>

    <

    configSections>

    <

    sectionGroup name="Element-IT.PowUpload">

    <

    section name="settings" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

    </

    sectionGroup>

    <!--

    .net 2.0 work around for local webcontrol directory instead of the iis virtual dir usage -->

    <

    section name="MicrosoftWebControls" type="System.Configuration.NameValueSectionHandler,System,Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    <

    sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">

    <!--

    other sections -->

    <

    section name="webServices" type="Microsoft.Web.Configuration.WebServicesSection"/>

    </

    sectionGroup>

    <

    section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <

    sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

    <

    sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

    <

    section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

    <

    sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

    <

    section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>

    <

    section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

    <

    section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

    </

    sectionGroup>

    </

    sectionGroup>

    </

    sectionGroup>

    </

    configSections>

    <

    Element-IT.PowUpload>

    <

    settings tempPath="" processPages="*.aspx" ignorePages="" uploadIDQueryField="UploadID" enableProgressBar="true" bufferSize="16384" minRequestLengthProcess="0" throwErrorsImmediately="true" serialKey=""/>

    </

    Element-IT.PowUpload>

    <

    system.web>

    <

    identity impersonate="true" userName="DOTNET" password="XXXX"/>

    <

    pages>

    <

    controls>

    <

    add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </

    controls>

    </

    pages>

    <!--

    Set compilation debug="true" to insert debugging

    symbols into the compiled page. Because this

    affects performance, set this value to true only

    during development.

    -->

    <

    compilation defaultLanguage="c#" debug="true">

    <

    assemblies>

    <

    add assembly="Element-IT.PowUpload, Version=1.3.0.0, Culture=neutral, PublicKeyToken=0f5ecb088372736c"/>

    <

    add assembly="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    <

    add assembly="Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    <

    add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <

    add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    <

    add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    <

    add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    <

    add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    <

    add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    <

    add assembly="Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <

    add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

     

    <

    add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <

    add assembly="Telerik.Charting, Version=2.0.2.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

    <

    add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

    <

    add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    </

    assemblies>

    </

    compilation>

    <

    customErrors mode="RemoteOnly" defaultRedirect="~/Public/Error.aspx"/>

    <

    authentication mode="Forms">

    <

    forms loginUrl="~/Public/UserLogon.aspx" name="SqlAuthCookie" timeout="60" path="/">

    </

    forms>

    </

    authentication>

    <

    authorization>

    <

    allow users="*"/>

    </

    authorization>

    <

    trace enabled="false" requestLimit="100" pageOutput="false" traceMode="SortByTime" localOnly="false"/>

    <!--

    If you got error at line below you need to create web-application in folder in IIS settings! -->

    <

    sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>

    <!--

    GLOBALIZATION

    This section sets the globalization settings of the application.

    -->

    <

    globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

    <

    httpHandlers>

    <

    remove path="*.asmx" verb="*" />

    <

    add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    validate="false" />

    <

    add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    validate="false" />

    <

    add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    validate="false" />

    <

    add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

    validate="false" />

    </

    httpHandlers>

    <

    httpRuntime maxRequestLength="1048576" useFullyQualifiedRedirectUrl="true" executionTimeout="7200"/>

    <

    httpModules>

    <

    add name="ElementIT.PowUpload.UploadModule" type="ElementIT.PowUpload.UploadModule, Element-IT.PowUpload"/>

    <

    add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </

    httpModules>

    <

    webServices>

    <

    soapExtensionImporterTypes>

    <

    add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </

    soapExtensionImporterTypes>

    </

    webServices>

    </

    system.web>

    <

    system.webServer>

    <

    validation validateIntegratedModeConfiguration="false"/>

    <

    modules>

    <

    add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </

    modules>

    <

    handlers>

    <

    remove name="WebServiceHandlerFactory-Integrated"/>

    <

    add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <

    add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <

    add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </

    handlers>

    </

    system.webServer>

    </configuration>

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017