aspnet-devexpress-dot-web-dot-aspxspellchecker-dot-aspxspellchecker-3e3c77a2.md
Occurs when client-side scripts are created and the identifier of a control to be checked is queried.
Namespace : DevExpress.Web.ASPxSpellChecker
Assembly : DevExpress.Web.ASPxSpellChecker.v25.2.dll
NuGet Package : DevExpress.Web
public event EventHandler<ControlResolveEventArgs> CheckedElementResolve
Public Event CheckedElementResolve As EventHandler(Of ControlResolveEventArgs)
The CheckedElementResolve event's data class is ControlResolveEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| ControlID | Gets the ID value of a control that should be resolved. |
| ResolvedControl | Gets or sets the control relating to the event. |
You should handle this event to provide a correct checkedElementID for the spellchecker’s client script. Set the ControlResolveEventArgs.ResolvedControl to the target control of the spell check, as the following code snippet illustrates:
protected void ASPxSpellChecker1_CheckedElementResolve(object sender,
DevExpress.Web.ControlResolveEventArgs e)
{
e.ResolvedControl = TextBox1;
}
Protected Sub ASPxSpellChecker1_CheckedElementResolve(ByVal sender As Object, _
ByVal e As DevExpress.Web.ControlResolveEventArgs)
e.ResolvedControl = TextBox1
End Sub
See Also