multiple OpenerElementIDs for one RadWindow

5 posts, 0 answers
  1. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 26 Aug 2010 Link to this post

    Hi,

    I have a radwindow which contains lots of nice functionality, but I need it to be openable by two different OpenerElementIDs.  I'd rather avoid having to duplicate the window just to acheive this.

    How can I wire up two OpenerElementIDs to the same RadWindow?
    Also...
    Once that is done, how can I tell which opener was used to open that instance of the window?

    Thanks,

    Craig
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 26 Aug 2010 Link to this post

    Hello Craig,

    I don't believe that situation is possible. The only way to allow muliple controls to open the same RadWindow would be to set the OnClientClick event of the control you want to open the RadWindow to something like so:

    OnClientClick="radopen(null, '[Name Of RadWindow]'); return false;"

    To determine which control opened the RadWindow, I guess you could pass something in the query string to the url used by the RadWindow.

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 26 Aug 2010 Link to this post

    Hi Cori,

    What is the [Name Of RadWindow] value?  I don't see a name attribute on the tag?

    Thanks.

    Craig
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Aug 2010 Link to this post

    Hello,


    More information on opening the RadWindow from client code can be found here.
    Opening Windows

    As Cori sugegsts, you can use query string to pass the parameter to window. It is also possible to pass arguments to radwindow when opening/closing the window. Checkout the documentation for more information on this.
    Using RadWindow as a Dialog


    Thanks,
    Princy.
  6. Emanuele Zambrano
    Emanuele Zambrano avatar
    21 posts
    Member since:
    Dec 2009

    Posted 02 May 2011 Link to this post

    you can use something like this:

    <script type="text/javascript">
        function ShowExternalLoginWindow() {
            var oWnd = $find("<%=wndExternalAccess.ClientID%>");
            oWnd.show();
        }
    </script>
     
    <telerik:RadWindow runat="server" ID="wndExternalAccess">
    </telerik:RadWindow>
     
    <asp:ImageButton runat="server" ID="imgOpenId" OnClientClick="ShowExternalLoginWindow(); return false;" />
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017