The following code demonstrates the problem:
On the ASPX page:
In the code behind:
To replicate the bug:
1) Check the checkbox - Uploader becomes visible
2) Uncheck the checkbox - Uploader is hidden
3) Click Submit button
4) Check the checkbox - Uploader becomes visible and has lost its skin
Also, a whole lot of javascript errors are thrown. They look something like this:
Error: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: y
Actual value was 54.5.
Source File: http://localhost:3283/ScriptResource.axd?d=8jczEaLTFUBNqwheNCryHqfGUyK2jzpjLXo5mShpcz0vUHsdNGX-REGSwtvamEPDvjtp5sE7pj8aTVKzLe84Q85zDxCG4QATzYj_HpM0Cnan9nZUFERr90xkeQfhl5f6aXCNKC5ZmIzMAPOOyOmuWJBKQo-2AyNSw9-R7L0L6qZXIrJo0&t=2610f696
Line: 4488
Using Telerik version 2010.1.519.35.
On the ASPX page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestForm.aspx.cs" Inherits="TestForm" %>
<!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
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ScriptManager
runat
=
"server"
ID
=
"sm"
/>
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"ram"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"chkBox"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlAjaxHandle"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:CheckBox
runat
=
"server"
ID
=
"chkBox"
Text
=
"Show"
AutoPostBack
=
"true"
/>
<
asp:Panel
runat
=
"server"
ID
=
"pnlAjaxHandle"
>
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"upload"
/>
</
asp:Panel
>
<
asp:Button
runat
=
"server"
ID
=
"button"
Text
=
"Submit"
/>
</
div
>
</
form
>
</
body
>
</
html
>
In the code behind:
public
partial
class
TestForm : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
upload.Visible = chkBox.Checked;
}
}
To replicate the bug:
1) Check the checkbox - Uploader becomes visible
2) Uncheck the checkbox - Uploader is hidden
3) Click Submit button
4) Check the checkbox - Uploader becomes visible and has lost its skin
Also, a whole lot of javascript errors are thrown. They look something like this:
Error: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: y
Actual value was 54.5.
Source File: http://localhost:3283/ScriptResource.axd?d=8jczEaLTFUBNqwheNCryHqfGUyK2jzpjLXo5mShpcz0vUHsdNGX-REGSwtvamEPDvjtp5sE7pj8aTVKzLe84Q85zDxCG4QATzYj_HpM0Cnan9nZUFERr90xkeQfhl5f6aXCNKC5ZmIzMAPOOyOmuWJBKQo-2AyNSw9-R7L0L6qZXIrJo0&t=2610f696
Line: 4488
Using Telerik version 2010.1.519.35.