Hi,
I am just trying to use the new promtheus build(2007.1.615.0). I found the property of Raddocklayout.RegisteredDocks always returns me a empty collection.
My code is as following.
Any wrong(bug?) with it?
Default2.aspx
default2.aspx.cs
I am just trying to use the new promtheus build(2007.1.615.0). I found the property of Raddocklayout.RegisteredDocks always returns me a empty collection.
My code is as following.
Any wrong(bug?) with it?
Default2.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> |
<%@ Register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %> |
<!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"> |
<div> |
<asp:Label ID="lblError" runat="server" ForeColor="red" /> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<telerik:raddocklayout id="rdl" runat="server" /> |
<asp:Panel ID="pnlLeft" runat="server" BackColor="yellow" Width="160px"></asp:Panel> |
</div> |
</form> |
</body> |
</html> |
using System; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using Telerik.Web.UI; |
using Orientation=Telerik.Web.UI.Orientation; |
public partial class Default2 : Page |
{ |
protected void Page_Init(object sender, EventArgs e) |
{ |
RadDockZone z1 = new RadDockZone(); |
z1.ID ="zone1"; |
z1.Width = Unit.Pixel(150); |
z1.BorderStyle = BorderStyle.Solid; |
z1.Orientation = Orientation.Horizontal; |
RadDockZone z2 = new RadDockZone(); |
z2.ID = "zone2"; |
z2.Width = Unit.Pixel(150); |
z2.BorderStyle = BorderStyle.Solid; |
z2.Orientation = Orientation.Horizontal; |
pnlLeft.Controls.Add(z1); |
pnlLeft.Controls.Add(z2); |
} |
protected void Page_Load(object sender, EventArgs e) |
{ |
lblError.Text = rdl.RegisteredDocks.Count.ToString(); |
} |
} |