I have a RadEditor and I’m trying to add a CustomValidator to it, as so:
protected override void OnInit(EventArgs e)
{
var validator = new CustomValidator();
validator.CssClass = "validator-error";
validator.Display = ValidatorDisplay.Dynamic;
validator.ControlToValidate = ".";
validator.Text = "You've exceeded the maximum allowed length for this field";
validator.ClientValidationFunction = "radEditorCheckLength";
this.Controls.Add(validator);
base.OnInit(e);
}
Which works fine, however when it renders, the validator is actually rendering inside the RadEditor. How do I make it appear before the RadEditor element?

This is a total hack. Does it work?
You’ll need to store your
CustomValidatorin a field:(I disassembled
RadEditorin Reflector, but I didn’t see an easy way to modifyRenderChildrento skip rendering the validator.)