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

$find on other window

2 Answers 83 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rainer Goos
Top achievements
Rank 1
Rainer Goos asked on 24 Jul 2009, 09:59 AM
I open a new RadWindow. Before the window is closed i put the ClientID of a RadTextBox which is a control on the window in the argument. On my page (which opened the window) i have a handler for the ClientClose-Event. There i take the ClientID and would like to paste the Text of the RadTextBox in a other RadTextBox on my page (which opened the window). I have the problem that the variable f is not definied, the $find not work. What is wrong?

function radWindowMemo_OnClientClose(window) 
  alert(window.argument); // it shows the correct ClientID!
  var f = window.BrowserWindow.$find(window.argument); // f is not defined!
  // ... Paste f.value in other RadTextBox
 


2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jul 2009, 11:53 AM
Hi Rainer,

I guess the RadTextBox is placed in radwindow and you want to set value for another RadTextBox (which is in parent page) on closing the radwindow. If so you can pass the textbox value as window argument (instead of textbox's ClientID) and set the value for RadTextBox in parent page.
Checkout the following link.
Using RadWindow as a Dialog

-Shinu.
0
Rainer Goos
Top achievements
Rank 1
answered on 24 Jul 2009, 01:16 PM
Hi Shinu,

the problem is that the format of the text (\r \n ...) cannot be set as value for the window.argument.
I have solved the problem with saving the value in the session and then load it with a ajaxRequest.
Tags
Window
Asked by
Rainer Goos
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rainer Goos
Top achievements
Rank 1
Share this question
or