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

Link not opening window???

2 Answers 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
Aron
Top achievements
Rank 2
Aron asked on 21 Jan 2009, 04:12 PM
Hello
I'm doing the most basic instance of a Rad Window on my site, but the rad windows are not opening when I click the link.

 <telerik:RadWindow ID="RadWindow1"  Title="Sign Up" runat="server" NavigateUrl="~/Resources/SignUpModal.aspx" Modal="true" OpenerElementID="signup1" Width="300" Height="550">
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2"  Title="Login" runat="server" NavigateUrl="~/Resources/LoginModal.aspx" Modal="true" OpenerElementID="login1" Width="300" Height="350">
            </telerik:RadWindow>
            <li><asp:HyperLink CssClass="signup" ID="signup1" runat="server" Text="signup" /></li>
            <li><asp:HyperLink CssClass="login" ID="login1" runat="server" Text="login" NavigateUrl="#" /></li>

see: http://keyconcepts.simpletick.com/

2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 22 Jan 2009, 02:05 PM
Hello Kansa,

I examined the live url and as far as I was able to see, there is no a link with ID login but the actual ID is Header1_login1. I also noticed that you have a MasterPage and I assume that the ID is modified by the fact that the MasterPage and User Controls (that also can cause this) are INaming Containers and they change the IDs of the controls which are nested in them. Please note that the OpenerElementID property has to be set to a clientID. One possible solution is to use expression like the following one:  OpenerElementID="<%# ServerButton.ClientID %> " - you can find a sample here.


All the best,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Randy
Top achievements
Rank 1
answered on 26 Oct 2009, 04:37 PM
This definetly was the answer to my problem.  It seems that if I have a MasterPage with the ScriptManager on it and in my content page I have a link button and a RadWindow.  I have to assign the OpenerElementId like this:

OpenerElementId="<%# lbtnShowPermissionRelationships.ClientID %>"

That solved my problem of the windo not opening up. I am assuming that the explanation about controls on a child content page being renamed I suppose.

Thanks for the help!

- Randy
Tags
Window
Asked by
Aron
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Randy
Top achievements
Rank 1
Share this question
or