Post back Ajaxified controls resulting in a javascript error

2 posts, 0 answers
  1. Mike
    Mike  avatar
    2 posts
    Member since:
    Apr 2010

    Posted 08 Jul 2010 Link to this post

    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>

     

     

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 12 Jul 2010 Link to this post

    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
Back to Top