Posted
on Jan 4, 2012
(permalink)
Thank you for the step-by-step tutorial...it is a great help in learning about the telerik asp.net ajax controls and VS 2010. I jumped in at section 9: Screen Real Estate Management. I'm following the directions rather than loading the code provided, and everything works fine other than the last part where clicking a linkbutton is supposed to open one of the three windows that are contained in the RadWindowManager. When I click a button the screen refreshes but the window is not opened.
If I change the property VisibleOnPageLoad to true for the windows, they load fine on load. Clicking a button then does a postback but doesn't seem to actually control the window.
One other point: the documentation said to drag the RadWindowManager to the bottom of the web page and then click the ... for the Window Property. The Window property wasn't initially available...I had to actually drag a window into the manager before that property was available. Then I could use it to add more windows and configure them.
Here is the code...do you see anything I'm doing wrong?
<asp:Table ID="Table1" runat="server" Height="700px" BorderColor="#FF0066"
BorderStyle="Solid" BorderWidth="1px" Width="1000px">
<asp:TableRow ID="TableRow1" runat="server">
<asp:TableCell ID="TableCell1" runat="server">
<telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" Width="100%" Height="100%" ResizeMode="AdjacentPane" BackColor="#FFFF66">
<telerik:RadPane ID="RadPane1" runat="server" Width="100px">
<asp:LinkButton ID="LinkButton1" runat="server">Telerik</asp:LinkButton><br />
<asp:LinkButton ID="LinkButton2" runat="server">Google</asp:LinkButton><br />
<asp:LinkButton ID="LinkButton3" runat="server">Wikipedia</asp:LinkButton>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitBar1" runat="server" BackColor="#CCFFCC" CollapseMode="None" EnableResize="True" />
<telerik:RadPane ID="RadPane2" runat="server" ContentUrl="http://www.op2s.com" Width="100%">
</telerik:RadPane>
</telerik:RadSplitter>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade"
Behaviors="Resize, Minimize, Close, Maximize, Move, Reload"
InitialBehaviors="Reload" Left="0px" NavigateUrl="http://www.Telerik.com"
OpenerElementID="LinkButton1" Title="Telerik" Top="0px"
VisibleStatusbar="True" VisibleOnPageLoad="false">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow2" runat="server" Animation="None"
Behaviors="Resize, Minimize, Close, Maximize, Move, Reload"
InitialBehaviors="Reload" Left="100px" NavigateUrl="http://www.op2s.com"
OpenerElementID="LinkButton1" Title="OP2S" Top="0px"
VisibleStatusbar="True" VisibleOnPageLoad="False">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow3" runat="server" Animation="Resize"
Behaviors="Resize, Minimize, Close, Maximize, Move, Reload"
InitialBehaviors="None" Left="200px" NavigateUrl="http://www.wikipedia.org"
OpenerElementID="LinkButton3" Title="Wikipedia" Top="0px"
VisibleStatusbar="True" BackColor="Fuchsia" VisibleOnPageLoad="false" >
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Thanks,
Steve