RadDatePicker inside of a RadWindow cause javascript exception on postback

2 posts, 0 answers
  1. Roman
    Roman avatar
    3 posts
    Member since:
    Jun 2010

    Posted 29 Jun 2010 Link to this post

    Hello
    A RadDatePicker placed in the content template of a RadWindow, that is placed inside of an update panel, cause javascript "Sys.InvalidOperationException: Two components with the same id '' can't be added to the application." exception on postback.
    To get it follow repro steps below.

    Using Telerik.Web.UI.dll  2010.1.429.20 version.
    Repro steps:
    1) Create a Web Form
    2) Use this code as the form source:
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title>Untitled Page</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <div> 
        <telerik:RadAjaxManager runat="server" ID="ajaxManager"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="radWindow"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="radWindow" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
         
        <telerik:RadWindow runat="server" ID="radWindow" VisibleOnPageLoad="true"
             
            <ContentTemplate> 
                <telerik:RadDatePicker AutoPostBack="true" runat="server" ID="radDatePicker"></telerik:RadDatePicker> 
            </ContentTemplate> 
         
        </telerik:RadWindow> 
        </div> 
        </form> 
    </body> 
    </html> 
    3) Open the form in a browser
    4) Pick up a date
    5)Observe javascript exception "Sys.InvalidOperationException: Two components with the same id 'radWindow_C_radDatePicker' can't be added to the application."
    Please provide a workaround as soon as possible.
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 30 Jun 2010 Link to this post

    Hi Roman,

    This problem has already been addressed by our developers. You can download the latest internal build for a hotfix.

    Sincerely yours,
    Pavel
    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