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

JavaScript errors

0 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peggy
Top achievements
Rank 1
Peggy asked on 21 Mar 2009, 08:56 PM

I figured it out -- I needed to change the control for the 3rd entry in the ajaxManager to a div instead of to the grid.

Hi,
I am writing a control that uses 2 grids. Both grids can be sorted and columns can be sized. When I start, only one grid is visible, The 2nd grid displays the same info but pivoted -- this grid is rendered, but hidden (visible but hidden so it renders). Everything on the page functions properly. However, I get these errors when I display the 2nd grid and when I close the page:
Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Telerik.Web.UI.RadAjaxManager' cannot be converted to type 'Telerik.Web.UI.RadAjaxManager'.

Parameter name: instance

Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Telerik.Web.Timer' cannot be converted to type 'Telerik.Web.Timer'.

Parameter name: instance

The thread 0xb9c has exited with code 0 (0x0).

Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Telerik.Web.UI.RadAjaxManager' cannot be converted to type 'Telerik.Web.UI.RadAjaxManager'.

Parameter name: instance

I am using VS 2008 and IE 7. These appear to be from scripts generated at runtime. I have tried running with and without the following:

 

 

 

 

 

 

<telerik:RadAjaxManagerProxy ID="radAMP_chartTable" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="rg_chartDataTbl">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rg_chartDataTbl"  LoadingPanelID="radLP_chartData"/>  
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="cmd_PivotTable" EventName="onClick">  
            <UpdatedControls > 
                <telerik:AjaxUpdatedControl ControlID="rg_chartDataTblePivoted" LoadingPanelID="radLP_chartData" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

So are there any hints on what I can do to prevent these errors?

 

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Peggy
Top achievements
Rank 1
Share this question
or