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

Post back Ajaxified controls resulting in a javascript error

1 Answer 51 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 08 Jul 2010, 06:24 PM
I have a RadColorCombo Picker (Doesnt matter WHAT rad object i use)
and it is updating a RadMenu (also doesnt matter what I update)
I set up ajax manager to update radmenu when colorcombopicker is used.
I get an error as follows:
Microsoft JScript runtime error: Object doesn't support this property or method
Section of code from Telerik.Web.UI.WebResource2_axd is the source  that has the error and the code it highlights is

if

 

 

(f.show(e)){var n={Panel:f,ControlID:e};

 

 

 

if(!Array.contains(this._loadingPanelsToHide,n)){this._loadingPanelsToHide[this._loadingPanelsToHide.length]=n;

 

 

}}}}}}},_initializeRequest:

 

function(e,c){Telerik.Web.UI.RadAjaxManager.callBaseMethod(this,"_initializeRequest",[e,c]);

 

if

 

(!this._isRequestInProgress){return;

}

 

var a=c.get_postBackElement();

if
(f.show(e)) is highlighted in the debugger


As an example here is the aspx

 

<telerik:RadColorPicker ID="RadColorPicker1" Runat="server" AutoPostBack="True"

 

 

oncolorchanged="RadColorPicker1_ColorChanged" ShowIcon="True"

 

 

 

SelectedColor="" style="z-index: 4000;" Height="21px">

 

 

 

 

</telerik:RadColorPicker>

 

<

 

 

telerik:RadMenu ID="RadMenu1" Runat="server">

 

 

<Items>

 

 

<telerik:RadMenuItem runat="server" Text="1">

 

</telerik:RadMenuItem>

 

<telerik:RadMenuItem runat="server" Text="2">

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

 

 

</telerik:RadMenu>

 

<telerik:RadAjaxManager runat="server"

 

onajaxrequest="RadAjaxManager1_AjaxRequest">

 

 

<AjaxSettings>

 

<telerik:AjaxSetting AjaxControlID="RadColorPicker1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadMenu1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 12 Jul 2010, 02:00 PM
Hello Mike ,

Could you please let me know whether the problem persists if the ajax is disabled on the page. Also please let me know what is the result if a regular asp UpdatePanel is used.

Sincerely yours,
Maria Ilieva
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
Mike
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or