Hi,
I am basing my code off of the sample you have here:
http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
In your sample, on the aspx page for "Dialog2.aspx" is a javascript function:
This line here, works great, but I need to try to modify:
instead of calling a function (in this case "populateCityName") I want to be able to set the control's value directly.
Is this possible?
So instead of the above line of code, I would like to do something like:
I am basing my code off of the sample you have here:
http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
In your sample, on the aspx page for "Dialog2.aspx" is a javascript function:
function
returnValue()
{
//get the RadComboBox's selected item's text
var
combo = $find(
"<%= RadComboBox1.ClientID %>"
);
var
selectedCapital = combo.get_text();
//Get a reference to the parent page (Default.aspx)
var
oWnd = GetRadWindow();
//get a reference to the second RadWindow
var
dialog1 = oWnd.get_windowManager().getWindowByName(
"RadWindow1"
);
// Get a reference to the first RadWindow's content
var
contentWin = dialog1.get_contentFrame().contentWindow
//Call the predefined function in Dialog1
contentWin.populateCityName(selectedCapital);
//Close the second RadWindow
oWnd.close();
}
This line here, works great, but I need to try to modify:
contentWin.populateCityName(selectedCapital);
instead of calling a function (in this case "populateCityName") I want to be able to set the control's value directly.
Is this possible?
So instead of the above line of code, I would like to do something like:
contentWin.document.getElementById(
"cityName"
).value =
"hello"
;