how to get arguments In a radwindow -CLient Side

3 posts, 0 answers
  1. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 06 Oct 2010 Link to this post

    Hi,
    I'm opening a popup with this code:

     

    window.radopen(

     

    '../PopUp/PopUpLinee.aspx', 'PopUpPiccola');

    To pass arguments to the popup i use this javascript function:
     

     

     

     

    function OnClientShow(radWindow) {   

     

     

    var oText = document.getElementById('<%=hfdRepartoSelezionato.ClientID%>').value;
    var arg = new Object(); 

     

     

    arg.IdReparto = oText;

    arg.IdTurno = "

     

    1" 

     

     

    radWindow.argument = arg;

    }

    At this point everithing works fine, but i don't know how to get this arguments when the popuplinee is opened.
    Wich event I've to use to "see" the arguments?.
    I need to put this arguments in two texboxes inside the popup.

    Thank you !!!


     

     

     

     

     

     

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2010 Link to this post

    Hello,


    Use the pageLoad method to get the parameters passed to Radwindow.

    Client code:
    function pageLoad()
    {
       txtInput = document.getElementById('txtUserInput');
       var currentWindow = GetRadWindow();
       var arg = currentWindow.argument;
       // Set the textbox value here
    }

    Check this link for more information:
    Using RadWindow as a Dialog


    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 07 Oct 2010 Link to this post

    Thank you.  works perfectly !!!
Back to Top