Open RadWindow from ascx

2 posts, 0 answers
  1. Jim
    Jim avatar
    3 posts
    Member since:
    Nov 2007

    Posted 19 Sep 2011 Link to this post


    Thanks in advance for any help on this...Let me explain as best I can:

    I have a parent page where I declare the window manager and the given window.


    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="display:none;" Behavior="Close" InitialBehavior="None" Left="" Top="" Modal="true" >






    <telerik:RadWindow ID="MyWindow" runat="server" Title="Buy Tickets" Height="600px"



        Width="700px" ReloadOnShow="False" Modal="True" Skin="Web20" VisibleStatusbar="False"



        Behaviors="Close" style="display:none;" Behavior="Close" InitialBehavior="None" Left=""     NavigateUrl=""     Top=""     ShowContentDuringLoad="False"  />







    this page contains an ascx

    the ascx conatains a nested repeater

    the nested repeater contains dynamic hyperlink controls.

    i want the navigateURL property to open a radwindow and I cannot get this to work.

    I tried the following function in the parent page:
    function ShowWindow()


         window.radopen('', 'MyWindow');



    and dynamically setting the navigateurl property of the hyperlinks to call that function as follows:


    "javascript: ShowWindow();"






    thanks for your help...jim

  2. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 19 Sep 2011 Link to this post

    Try this
    function openWindow(){
        var myWndID = $telerik.$('[id$="MyWindow"]').attr("id");
        var myWnd = $find(myWndID);;

    To wireup your links, perhaps some jQuery?
             openWindow(); //perhaps pass a value

    I mean the .show is just to open it, really you can do anything
Back to Top