This is a migrated thread and some comments may be shown as answers.

RadPanel Linkbutton does not show window in Masterpage/Child.

2 Answers 66 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
IQworks
Top achievements
Rank 1
IQworks asked on 06 Jan 2009, 09:05 PM
 Hi,
   I am working with the RadDockZone example in the courseware.
  When I put the page in a master page, the linkbutton does not show the URL in a window. Instead, there is the link click, then the progress bar runs its course and the master/child page is returned.
  The docking works ok !
thanks for your time ....

  Here is the code:

<%@ Page Language="C#" MasterPageFile="../iqMasterPage.master" %> 
 
<%@ MasterType VirtualPath="../iqMasterPage.master" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<script runat="server"</script> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="mbfPlaceHolder1" runat="Server">  
    <div> 
    </div> 
    <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="150px" Skin="Outlook" Width="100%">  
        <telerik:RadDock ID="RadDock2" runat="server" DockMode="Docked" Title="WorkOut Schedule" Width="150px">  
            <ContentTemplate> 
                <telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma" ForeColor="Black" Skin="Outlook" Style="border-color: #ececec">  
                </telerik:RadCalendar> 
            </ContentTemplate> 
        </telerik:RadDock> 
        <telerik:RadDock ID="RadDock1" runat="server" Width="150px" Skin="Outlook" Text="Your Body is a Science" Title="Quote">  
        </telerik:RadDock> 
    </telerik:RadDockZone> 
    <table style="width: 100%;">  
        <tr> 
            <td width="200px">  
                <telerik:RadDockZone ID="RadDockZone2" runat="server" FitDocks="False" Height="400px" Skin="Outlook" Width="200px">  
                </telerik:RadDockZone> 
            </td> 
            <td> 
                <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Skin="Outlook" Width="100%">  
                    <telerik:RadPane ID="RadPane1" runat="server" Height="75px" Width="113px">  
                        <asp:LinkButton ID="LinkButton1" runat="server">My Body Science</asp:LinkButton> 
                        <br /> 
                        <asp:LinkButton ID="LinkButton2" runat="server">Google</asp:LinkButton> 
                        <br /> 
                        <asp:LinkButton ID="LinkButton3" runat="server">Wikipedia</asp:LinkButton> 
                    </telerik:RadPane> 
                    <br /> 
                    <telerik:RadPane ID="RadPane2" runat="server">  
                    </telerik:RadPane> 
                    <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> 
                    <br /> 
                </telerik:RadSplitter> 
            </td> 
        </tr> 
    </table> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="Fade" Skin="Telerik">  
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server" Animation="FlyIn" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" OpenerElementID="linkButton1" Title="Google" VisibleStatusbar="false" NavigateUrl="http://www.mybodyscience.com" Left="" Style="display: none;" Top="">  
            </telerik:RadWindow> 
            <telerik:RadWindow ID="RadWindow2" runat="server" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" OpenerElementID="linkButton2" Title="My Body Science" VisibleStatusbar="false" NavigateUrl="http://www.google.com" Left="" Style="display: none;" Top="">  
            </telerik:RadWindow> 
            <telerik:RadWindow ID="RadWindow3" runat="server" Animation="Resize" OpenerElementID="linkButton3" Title="Wikipedia" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" Left="" NavigateUrl="http://www.wikipedia.org" Style="display: none;" Top="">  
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
</asp:Content> 
 

2 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 09 Jan 2009, 05:17 PM
Hello David ,

I have already answered your support ticket on the same subject. For convenience I am pasting my reply below:

This is happenign because  Content Page in MasterPage is a iNaming container which changes the IDs of the elements inside it. That is why you need to use the ClientID of the controls e.g. :
<telerik:RadWindow ID="RadWindow1" runat="server" OpenerElementID='<%# LinkButton1.ClientID %>' 
    Animation="FlyIn" Behavior="Resize,Minimize,Close,Maximize,Move,Reload" InitialBehavior="None" 
    Title="Google" VisibleStatusbar="false" NavigateUrl="http://www.mybodyscience.com" 
    Left="" Style="display: none;" Top=""
</telerik:RadWindow> 

I hope this is helpful.


Greetings,
Fiko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
IQworks
Top achievements
Rank 1
answered on 09 Jan 2009, 11:53 PM
Thanks Fiko,
    I see. For anyone else running into this who many not know. It didnt work when I did
<%# ctl00_mbfPlaceHolder1_LinkButton1.ClientID %>. I think this is because  ctl00_mbfPlaceHolder1_LinkButton1
 IS the clientID. I just needed <%# LinkButton1.ClientID %>..
    Fiko, I will try to do better research.
Tags
Splitter
Asked by
IQworks
Top achievements
Rank 1
Answers by
Fiko
Telerik team
IQworks
Top achievements
Rank 1
Share this question
or