Hi. How would I access the Radeditor from within a user control?
I have a user control (details.ascx) that has a user control embedded in it (editor.ascx)
that only contains a radeditor control. so, from within the details.ascx javascript code,
I want to be able to access the radedit control inside the editor.ascx. I couldn't get a
reference to the radedit. previously I had the editor.ascx replaced with just an RadTextBox
and it worked perfectly. but, I just tried the user control yesterday, and I cannot find
a way to access the radeditor. In the details.ascx page_load on serverside, I set a hidden
field to the usercontrol's radeditor ID, but that doesn't seem to work as in client side, I
get a not defined error.
(also, this is all within a content page within a masterpage scenario (which didn't seem to
affect anything.) And, all the examples on the forums are just too simplistic as it is
accessing the radeditor from within an aspx page, not an ascx page.
My code sample below: (from details.ascx)function OnSearchClose(oWnd, args) {
//get the transferred arguments
var arg = args.get_argument();
if (arg) {
var ClauseName = arg.ClauseName;
var txtName = $find("<%= rtbClauseName.ClientID %>");
txtName.set_value(ClauseName);
//the above code works perfectly as it is just accessing
// a radtextbox within details.ascx
//document.getElementById('hdEditorID').value;
//This code above is accessing the hiddenfield on the page, but just returns
//null, so I'm not sure how to get a reference to the radeditor on the usercontrol
}