BeforeRenderObjectEvent.OnFocusInHandler Property
Gets or sets the JavaScript code that is executed just prior to the object receiving focus. The code is cached on the client in the HTML page.
Namespace CrystalDecisions.Web.HtmlReportRender Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Syntax
'Declaration
Public Overrideable Property OnFocusInHandler As String
public virtual string OnFocusInHandler {get; set;}
Example
This example shows how to set OnFocusInHandler.
'Declaration
Private Sub SetOnFocusInHandler()
Dim JavaScriptCode As String = _
"<script language="Javascript">alert('Calling OnFocusInHandler')</script>"
BeforeRenderObjectEvent1.OnFocusInHandler = JavaScriptCode
End Sub
private void SetOnFocusInHandler()
{
String javaScriptCode =
"<script language="Javascript">alert('Calling OnFocusInHandler')</script>";
beforeRenderObjectEvent.OnFocusInHandler = javaScriptCode;
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
BeforeRenderObjectEvent Class
BeforeRenderObjectEvent Members
CrystalDecisions.Web.HtmlReportRender Namespace