Hi,
I am trying to put RadDockLayout inside RadPanelBar.I got very strange behavior. I am wondering whether RadDock control is compatible with RadPanelBar.I am using lastest version of both Rad Prometheums and RadPanelBar.
My code is as following:
Webform1.aspx
WebForm1.aspx.cs
I am trying to put RadDockLayout inside RadPanelBar.I got very strange behavior. I am wondering whether RadDock control is compatible with RadPanelBar.I am using lastest version of both Rad Prometheums and RadPanelBar.
My code is as following:
Webform1.aspx
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="WebForm1.aspx.cs" Inherits="AJAXEnabledWebApplication1.WebForm1" %> |
<%@ Register Assembly="RadPanelbar.Net2" Namespace="Telerik.WebControls" TagPrefix="radP" %> |
<%@ 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"> |
<div> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<asp:Label ID="lblError" runat="server" ForeColor="red" /> |
<telerik:RadDockLayout ID="rdl1" runat="server"> |
</telerik:RadDockLayout> |
<telerik:RadDockLayout ID="rdl2" runat="Server" /> |
<radP:RadPanelbar ID="rpb" runat="server"> |
</radP:RadPanelbar> |
</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; |
using Telerik.WebControls; |
namespace AJAXEnabledWebApplication1 |
{ |
public partial class WebForm1 : 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; |
z1.FitDocks = true; |
RadDock dock1 = new RadDock(); |
dock1.DockHandle = DockHandle.Grip; |
dock1.ID = "RadDock1"; |
dock1.Text = "Dock1"; |
dock1.Width = Unit.Pixel(150); |
z1.Controls.Add(dock1); |
RadDockZone z2 = new RadDockZone(); |
z2.ID = "zone2"; |
z2.Width = Unit.Pixel(150); |
z2.BorderStyle = BorderStyle.Solid; |
z2.Orientation = Orientation.Horizontal; |
z1.FitDocks = true; |
RadDock dock2 = new RadDock(); |
dock2.DockHandle = DockHandle.Grip; |
dock2.ID = "RadDock2"; |
dock2.Text = "Dock2"; |
dock2.Width = Unit.Pixel(150); |
z2.Controls.Add(dock2); |
rdl1.Controls.Add(z1); |
rdl2.Controls.Add(z2); |
RadPanelItem header1=new RadPanelItem("Bar1"); |
RadPanelItem content1=new RadPanelItem(); |
header1.Expanded = true; |
content1.Controls.Add(rdl1); |
header1.Items.Add(content1); |
rpb.Items.Add(header1); |
RadPanelItem header2=new RadPanelItem("Bar2"); |
header2.Expanded = true; |
RadPanelItem content2=new RadPanelItem(); |
content2.Controls.Add(rdl2); |
header2.Items.Add(content2); |
rpb.Items.Add(header2); |
} |
protected void Page_Load(object sender, EventArgs e) |
{ |
} |
} |
} |