I am using the RadWindow as a dialog for updating some user notes on my database. I have the RadWindow defined on my main page. When the user clicks a button, I open the RadWindow and set several field values on the window using Javascript. The user then enters their data and clicks a "Submit" button.
In the code behind, I am getting the data from the fields on the RadWindow and then calling my database update routine. The issue I am having is this. When I pop the window up using Javascript, I am modifying some label, RadTextbox, and Radbutton control text values. In the code behind I need to use the values. The text values are fine but the labels that I change in the Javascript do not have the updated values in the code behind. Does anybody know why?
I am using the "OnClientShow" event to call the Javascript routine to modify the RadWindow fields. Here is the routine:
It is specifically the DUCarrName and DULocName values on the RadWindow that show correctly on the actual window, but do not have the new values in the code behind.
Any help would be greatly appreciated.
Blake
In the code behind, I am getting the data from the fields on the RadWindow and then calling my database update routine. The issue I am having is this. When I pop the window up using Javascript, I am modifying some label, RadTextbox, and Radbutton control text values. In the code behind I need to use the values. The text values are fine but the labels that I change in the Javascript do not have the updated values in the code behind. Does anybody know why?
I am using the "OnClientShow" event to call the Javascript routine to modify the RadWindow fields. Here is the routine:
// This function moves the data from various fields in the carrierinformation page to the data
// update request screen being opened. Some of the fields are actual data fields from the screen
// while others are hidden fields.
function SetDataUpdWindowFields() {
// Get Carrier name and set.
var CarrName = GetCarrierName();
var DUCarrName = document.getElementById("<%= lblDataUpdCarrName.ClientID %>");
DUCarrName.innerText = CarrName;
// Get Email Address and Set.
var EmailAddr = document.getElementById("<%= hfEmailAddr.ClientID %>");
var DUEmailAddr = $find("<%= rtxtDataUpdEmailAdr.ClientID %>");
DUEmailAddr.set_value(EmailAddr.value);
// Set the user notify option to yes.
$find("<%= roptDataUpdNotifyYes.ClientID %>").set_checked(true);
$find("<%= roptDataUpdNotifyNo.ClientID %>").set_checked(false);
// Get and set the location name.
var rpageview = GetCurrPageView();
if (rpageview) {
var lblLocName = $telerik.$(".cdhdr-carrlocationheader", rpageview._element).html();
if (lblLocName) {
var DULocName = document.getElementById("<%= lblDataUpdLocName.ClientID %>");
DULocName.innerText = lblLocName;
}
}
}
It is specifically the DUCarrName and DULocName values on the RadWindow that show correctly on the actual window, but do not have the new values in the code behind.
Any help would be greatly appreciated.
Blake