Hello,
I've the following strange problem:
On a page there is button, which makes a raddock visible when clicked.
Inside the raddock there is some text and a button which closes the raddock when clicked
The controls are ajaxified using Rad Ajax Manager.
OK Scenario: I click on the "show" button, raddock appears. I click on the "close" button, raddock disappears. Only asynchronyous postbacks take place. If i click "show" button once more, raddock reappears correctly.
Fail Scenario: I click on the "show" button, raddock appears. I move raddock on the screen. After that, when I click the 'close" button, full page postback occurs before radddock disappears. If after that, I click "show" button once more, raddock reappears without title bar and all formatting seems to be lost.
Aspx file:
CS file:
I've the following strange problem:
On a page there is button, which makes a raddock visible when clicked.
Inside the raddock there is some text and a button which closes the raddock when clicked
The controls are ajaxified using Rad Ajax Manager.
OK Scenario: I click on the "show" button, raddock appears. I click on the "close" button, raddock disappears. Only asynchronyous postbacks take place. If i click "show" button once more, raddock reappears correctly.
Fail Scenario: I click on the "show" button, raddock appears. I move raddock on the screen. After that, when I click the 'close" button, full page postback occurs before radddock disappears. If after that, I click "show" button once more, raddock reappears without title bar and all formatting seems to be lost.
Aspx file:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> |
<!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"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
<Scripts> |
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
</Scripts> |
</telerik:RadScriptManager> |
|
<div> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="rdTest"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="btnShowDock" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="btnShowDock"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="rdTest" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadDock ID="rdTest" runat="server" Visible="False" Width="300px"> |
<ContentTemplate> |
Test<br /> |
<asp:Button ID="btnCloseDock" runat="server" OnClick="btnCloseDock_Click" Text="Close" /> |
</ContentTemplate></telerik:RadDock> |
</div> |
<asp:Button ID="btnShowDock" runat="server" OnClick="btnShowDock_Click" Text="Show" /> |
</form> |
</body> |
</html> |
CS file:
using System; |
using System.Web; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using System.Data; |
using System.Configuration; |
using System.Web.Security; |
using System.Web.UI.WebControls.WebParts; |
using System.Web.UI.HtmlControls; |
using Telerik.Web.UI; |
public partial class Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
} |
protected void btnShowDock_Click(object sender, EventArgs e) |
{ |
rdTest.Visible = true; |
btnShowDock.Enabled = false; |
} |
protected void btnCloseDock_Click(object sender, EventArgs e) |
{ |
rdTest.Visible = false; |
btnShowDock.Enabled = true; |
} |
} |