Object doesn't support this property or method

5 posts, 0 answers
  1. Scott Davis
    Scott Davis avatar
    10 posts
    Member since:
    Apr 2010

    Posted 20 Apr 2010 Link to this post

    I'm attempting to evaluate the Telerik controls for ASP.NET AJAX.  I'm coming from being a fairly long time user of a competing control suite that supposedly works with ASP.NET AJAX, but my experience with it has been very troublesome, moving from one bug to another.

    I have installed the latest trial version of the RadControls (downloaded the new version today) and I am also using the April 12th release of the ASP.NET AJAX Control Toolkit.  Initially, I was receiving script errors complaining about the need for the .NET 4.0 scripts for the control toolkit, but I eventually found the solution to that problem on these forums by adding script reference to the RadScriptManager like this:

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
            <Scripts> 
                <asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
                    Name="MicrosoftAjax.js" Path="~/Scripts/MicrosoftAjax.js" /> 
                <asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
                    Name="MicrosoftAjaxWebForms.js" Path="~/Scripts/MicrosoftAjaxWebForms.js" /> 
            </Scripts> 
        </telerik:RadScriptManager> 
     

    That RadScriptManager is on a WebForm.  I have a User Control on that form as well.  On that User Control I placed a RadGrid.  I was able to get everything working just fine with little issue.

    However, I then wanted to ajaxify the RadGrid.  Initially, I placed a RadAjaxManager on the User Control and configured the Grid to intiate Ajax requests and be updated by then, like so:

        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="grd">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="grd" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
     

    Now, when I click on anything on the grid I get script errors "Object doesn't support this propery or method" referencing a line number in Telerik.Web.UI.WebResource.axd.

    I tried putting the RadAjaxManager on the WebForm (rather than the control) and placing a RadAjaxManagerProxy on the control, but this results in the same error.

    I am running Visual Studio 2008 on Windows Vista and using ASP.NET 3.5.  I'm using the 3.5 version of the RadControls and the 3.5 version of the AJAX Control Toolkit as well.

    I would really appreciate any help you can give me in what might be causing this problem as I can't continue to evaluate the product until I get past this issue.

    Thank You!
  2. Scott Davis
    Scott Davis avatar
    10 posts
    Member since:
    Apr 2010

    Posted 20 Apr 2010 Link to this post

    As an update to this issue, I removed all of my references to the Ajax Control Toolkit controls from the WebForm and the User Control.  The problem still persisted.  I then removed the script references that I had added to the RadScriptManager to make the AJAX Control Toolkit work properly.  So basically, I just had a RadScriptManager like this:

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
     

    Once I removed those script references, the RadGrid started working properly and ajaxified.  So, with the script references, the AJAX Control Toolkit stuff works and the Rad AJAX stuff gives me script errors.  Without the script references neither of them work properly and when I completely remove the AJAX Control Toolkit stuff and the script references the Rad controls work fine.

    I really need to be able to use the AJAX Control Toolkit so I'm hoping there is a resolution to this issue.

    Thanks!
  3. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 23 Apr 2010 Link to this post

    Hi Scott,

    I suggest that you either use a version of the AJAX Controls Toolkit that is made for .NET 3.5 or create your web application under .NET 4.0.
    However if you could open a formal support ticket and send us a sample project, we will debug it locally and see if a workaround for the problem can be found.

    Regards,
    Iana
    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.
  4. Thomas Salt
    Thomas Salt avatar
    136 posts
    Member since:
    Apr 2005

    Posted 17 Jun 2010 Link to this post

    Are you basically saying that you can't use AjaxControlToolkit AND RadControls in the same project on the same page? 
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Jun 2010 Link to this post

    Hello Thomas,

    Indeed, you can use RadControls for ASP.NET AJAX and AjaxControlsToolkit controls in the same project and page. However should either use the ToolkitScriptManager or RadScriptManager as discussed in the below forum threads:

    http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/unable-to-use-asp-net-ajax-library-beta-in-conjunction-with-radcontrols.aspx
    http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/ajax-control-toolkit-compatability.aspx

    Regards,
    Iana
    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