This is a migrated thread and some comments may be shown as answers.

Object doesn't support this property or method

4 Answers 242 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Scott Davis
Top achievements
Rank 1
Scott Davis asked on 20 Apr 2010, 06:53 PM
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!

4 Answers, 1 is accepted

Sort by
0
Scott Davis
Top achievements
Rank 1
answered on 20 Apr 2010, 07:33 PM
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!
0
Iana Tsolova
Telerik team
answered on 23 Apr 2010, 11:44 AM
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.
0
Thomas Salt
Top achievements
Rank 1
answered on 17 Jun 2010, 03:54 PM
Are you basically saying that you can't use AjaxControlToolkit AND RadControls in the same project on the same page? 
0
Iana Tsolova
Telerik team
answered on 18 Jun 2010, 09:12 AM
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
Tags
Ajax
Asked by
Scott Davis
Top achievements
Rank 1
Answers by
Scott Davis
Top achievements
Rank 1
Iana Tsolova
Telerik team
Thomas Salt
Top achievements
Rank 1
Share this question
or