Microsoft JScript runtime error: 'constructor' is null or not an object

3 posts, 0 answers
  1. Prabhu
    Prabhu avatar
    3 posts
    Member since:
    Aug 2010

    Posted 12 Aug 2010 Link to this post

    Hi All,

    I have upgraded my Telerik RAD controls version from 2009.2.701.20 to 2010.2.713.35(Trial Version) in my application.
    I have used both "Telerik.Web.Design.dll" and "Telerik.Web.UI.dll" int he application.
    While running the application i got the error "Microsoft JScript runtime error: 'constructor' is null or not an object".

    Then i replaced all the scripts which were used in the previous version by new version scripts.
    No my application is loading the RAD date picker properly, but when i am clicking, it throws the following error:
    "Microsoft JScript runtime error: Object doesn't support this property or method"
    and the picker is not showing...

    Could anyone help me to solve this issue...

    Thanx in advance!
    Regards
    Pravels

     

  2. jai
    jai avatar
    16 posts
    Member since:
    Jan 2008

    Posted 06 Sep 2010 Link to this post

    hi,

    im too having the same issue
    Im using Telerik 2010.2.713 version with Sharepoint 2010.
    Created visualwebpart with simple button, 1 radcombobox inside updatepanel, initially the radcombobox will be visible false, on button click we are trying to enable the radcombobox.
    But when i click on button im getting error on page 'Telerik is undefined', so i changed my web.config with Telerik.Web.UI.WebResource in <handlers>, now im getting 'Object expected'.

    Please find the below code that im using

    visual webpart usercontrol

    <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Conditional" >
        <ContentTemplate>
            <asp:Button runat="server" ID="btn1" Text="ShowButton" OnClick="btn1_Click" />
            <telerik:RadComboBox visible="false" AutoPostBack="true" ID="RadComboBox1" runat="server">
                <Items>
                    <telerik:RadComboBoxItem Text="1" />
                    <telerik:RadComboBoxItem Text="2" />
                    <telerik:RadComboBoxItem Text="3" />
                </Items>
            </telerik:RadComboBox>
        </ContentTemplate>
    </asp:UpdatePanel>

    Telerik references in Web.Config

    <httpHandlers>
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>

    <handlers>
          <remove name="OPTIONSVerbHandler" />
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="svc-Integrated" />
          <remove name="WebDAV" />
          <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
          <add name="OwssvrHandler" scriptProcessor="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll" path="/_vti_bin/owssvr.dll" verb="*" modules="IsapiModule" preCondition="integratedMode" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add name="JSONHandlerFactory" path="*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" />
          <add name="ReportViewerWebPart" verb="*" path="Reserved.ReportViewerWebPart.axd" type="Microsoft.ReportingServices.SharePoint.UI.WebParts.WebPartHttpHandler, Microsoft.ReportingServices.SharePoint.UI.WebParts, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
          <add name="ReportViewerWebControl" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          <add name="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>

    Please help me to fix the issue..
    thanks in advance
    jai
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 08 Sep 2010 Link to this post

    Hi jai,

    We were recently notified by other developers of this problem and the senior developer of our team researched it in depth. Unfortunately, this seems to be a failure of the SharePoint framework - when IScriptControls withing an update panel are dynamically shown SharePoint fails to load their scripts. We will try to contact MS support team on that matter and see if they can supply some work-around.

    Regards,
    Tsvetoslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top