Click or drag to resize
AceoffixCtrlJsFunction_OnExcelCellClick Property
Sets a JavaScript function for OnExcelCellClick event.

Namespace: Aceoffix
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string JsFunction_OnExcelCellClick { get; set; }

Property Value

Type: String
Remarks

This event is triggered when user clicks the cell in Excel document.

If you want to capture this event, you should define a JavaScript function in the ASPX file of the current file.

In the JavaScript function, you can return a value to set the value of the current Cell.

Examples

The following code example shows how to use the JsFunction_OnExcelCellClick property.

AceoffixCtrl1.JsFunction_OnExcelCellClick = "OnExcelCellClick()";

And then, you should define the OnExcelCellClick() JavaScript function in ASPX file of current page.

JavaScript
<script language="javascript" type="text/javascript">
    function OnExcelCellClick(CellAddress, Value, Left, Bottom) {
        if (CellAddress == "$B$5") {
            return "Developer can raise a dialog box at here and get the value input by user.";
        }
    }
</script>
See Also