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

how to get arguments In a radwindow -CLient Side

2 Answers 256 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 06 Oct 2010, 01:32 PM

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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2010, 02:06 PM
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.
0
archimede
Top achievements
Rank 1
answered on 07 Oct 2010, 08:31 AM
Thank you.  works perfectly !!!
Tags
General Discussions
Asked by
archimede
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
archimede
Top achievements
Rank 1
Share this question
or