BeforeRenderObjectEvent.OnDragEnterHandler Property

Gets or sets the JavaScript code that is executed when an object is dragged into the controls bounds. 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 OnDragEnterHandler As String
public virtual string OnDragEnterHandler {get; set;}

Example

This example shows how to set OnDragEnterHandler.

'Declaration

    Private Sub SetOnDragEnterHandler()
      Dim JavaScriptCode As String = _
        "<script language="Javascript">alert('Calling OnDragEnterHandler')</script>"
      BeforeRenderObjectEvent1.OnDragEnterHandler = JavaScriptCode
    End Sub
    private void SetOnDragEnterHandler()
    {
      String javaScriptCode = 
        "<script language="Javascript">alert('Calling OnDragEnterHandler')</script>";
      beforeRenderObjectEvent.OnDragEnterHandler = 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