Link not opening window???

3 posts, 1 answers
  1. Aron
    Aron avatar
    80 posts
    Member since:
    Dec 2005

    Posted 21 Jan 2009 Link to this post

    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. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 22 Jan 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Randy
    Randy avatar
    23 posts
    Member since:
    Jul 2012

    Posted 26 Oct 2009 Link to this post

    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
Back to Top