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

RadDatePicker inside of a RadWindow cause javascript exception on postback

1 Answer 66 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 29 Jun 2010, 03:43 PM
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.

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 30 Jun 2010, 09:13 AM
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
Tags
Calendar
Asked by
Roman
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or