When i use the Ajax Validator callout Extender for the Rad Editor Control after setting the property of setfocusonerror for the Validator call out extender for required field the fous is not getting in the Radeditor
1 Answer, 1 is accepted
0
Dobromir
Telerik team
answered on 15 Dec 2009, 01:13 PM
Hi simhadri,
Currently ValidatorCalloutExtender is not compatible with the RadEditor control. We will try to provide support for it in one of the upcoming versions of RadEditor for ASP.NET AJAX.
As a workaround, you can use CustomValidator to simulate RequiredFieldValidator and set focus on the editor in the ClientValidationFunction.
e.g.:
<scripttype="text/javascript">
function ClientValidationFunction(sender, args) {
//Note that sender is NOT the RadEditor but the span of the validator.
//The content is contained in the args.Value variable
//some validation code goes here
var editor = $find("<%=RadEditor1.ClientID %>");//get reference of the RadEditor control
editor.setFocus();//set focus to the RadEditor control