Hello,
I have a problem,
I have a radwindow control which displays a webpage that contains a label control.
I need to set the height of this radwindow in that label and use it within the c# code of the page.
i'm using rhe following javascript code:
I call the above function like this:
The height is retrieved without problems, but the issue is I can't access that value in code behind. for example, If I use the following code, I recieve an error message (Attached):
Please, Can you explain to me how can I solve this problem.
It is very apprecited to send me the modified code with an explaination regarding the above situation.
Regards,
Bader
I have a problem,
I have a radwindow control which displays a webpage that contains a label control.
I need to set the height of this radwindow in that label and use it within the c# code of the page.
i'm using rhe following javascript code:
function FocusOnRadWindow() {
window.setTimeout(function () {
GetRadWindow().GetContentFrame().contentWindow.focus();
var wndHeightValue = GetRadWindow().get_popupElement().style.height.toString().replace("px", "");
document.getElementById("TestLabel").innerHTML = wndHeightValue;
}, 100);
}
I call the above function like this:
<
body
onload
=
"FocusOnRadWindow()"
>
The height is retrieved without problems, but the issue is I can't access that value in code behind. for example, If I use the following code, I recieve an error message (Attached):
int wndHeight = Convert.ToInt32(TestLabel.Text) - 130;
Please, Can you explain to me how can I solve this problem.
It is very apprecited to send me the modified code with an explaination regarding the above situation.
Regards,
Bader